DEV Community

PanupongDeve
PanupongDeve

Posted on

1

[AWS EKS] Setup CloudWatch-logging

step1 - setup file cluster.yaml

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: my-cluster-ec2
region: ap-southeast-1
nodeGroups:
- name: ng-1
instanceType: t3.small
desiredCapacity: 3
ssh:
publickeyName: the1-cpp
cloudWatch:
clusterLogging:
enableTypes: ["*"]

step2 - enable cloudwatch log with eksctl

eksctl utils update-cluster-logging --config-file ((cluster-config.file.yaml)) --approve

loggin in aws console

CloudWatch -> log groups -> /aws/eks

Alt Text

disable cloudwatch logging

eksctl utils update-cluster-logging --name=((EKS-course-cluster-name)) --disable-types all --approve

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay