Amazon Web Services - Generating Log Bundle for EKS Instance
Last Updated :
13 Jul, 2022
Amazon SageMaker is used by data scientists and developers to easily and quickly prepare, build, train, and deploy high-quality machine learning (ML) models by bringing together a broad set of capabilities purpose-built for ML.
In this article, we will look into how users can generate a log bundle for their Amazon Elastic Kubernetes Service instances. To do so follow the below steps:
Step 1: After logging into the AWS management console navigate to the System Manager console.

Step 2: Then go to automation in the left pane.

Step 3: Then choose Execute automation.

Step 4: Then choose AWSSupport-CollectEKSinstanceLogs in the list and choose next.

Step 5: Now enter the amazon elastic compute cloud instance id for your amazon EKS instance in the EKS instance-id field.

Step 6: To upload the collected logs to an Amazon S3 bucket, enter the bucket name in the log destination field. Note that the S3 bucket used for this purpose can't be public otherwise, logs aren't uploaded in the provided S3 bucket for security reasons.

To successfully run this automation and see the output the user running it needs the following permissions:
- SSM: ExecuteAutomation
- SSM:GetAutomationExecution
- SSM: SendCommand
If the user invoking the document doesn't have the required permissions you must provide the appropriate AWS identity and access management role in the automation assume role field and then choose the execute button:

The AWS run command sends out the run command to run the log collection script which saves manual effort for log collection. The AWS branch validates if an S3 bucket was provided in the automation execution. The AWS run command sends out the run command to upload the lock bundle to the provided S3 bucket. When the automation execution is complete preview the output of the run upload script to view the S3 log bundle location as shown below:

Similar Reads
Monitoring And Logging For Amazon ECS Services As we all know monitoring and logging are crucial to managing ECS services effectively. In this article, we will explore the different ways to set up monitoring and logging for ECS services. Meanwhile, we will ensure some of the important chords like optimal performance, troubleshoot issues, and gai
4 min read
Amazon Web Services - Replacing Unhealthy EC2 Instance in Elastic Beanstalk Environment In this article, we will look into how to automate the replacement of EC2 instances in an AWS Elastic Beanstalk environment that are failing Elastic Load Balancer health checks. By default, the Elastic Beanstalk environment's Auto Scaling group health check configuration is set to the EC2 type which
2 min read
Amazon Web Services - Creating an Amazon Machine Image(AMI) In this tutorial, we'll go through in great detail how to create an Amazon Machine Image on AWS. An operating system, programmes, and configuration settings are all part of an Amazon Machine Image (AMI), which is a template for software configuration. You must choose an AMI to act as the instance's
6 min read
Amazon Web Services - Introduction to Amazon EKS Amazon Elastic Kubernetes Service(EKS) is a fully managed service that you can use to run Kubernetes on Amazon Web Service. Kubernetes is open-source software that enables you to install and manage applications at a high scale. Table of ContentWhat is Amazon EKSBenefits of Amazon EKSHow Amazon EKS W
10 min read
Amazon Web Services - Configuring Amazon S3 Event Notifications The Amazon S3 notification feature enables you to receive notifications when a certain event occurs inside your bucket. To get notifications, first, add a notification configuration that reads the event you want Amazon S3 to publish and the destinations where Amazon S3 will send the notifications. T
5 min read