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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more