Prompt Title: AWS: List All EKS Clusters

Created 1 year ago
Votes 0
Views 383 times
IT
0

Prompt Detail:

To list all the Amazon Elastic Kubernetes Service (EKS) clusters in an AWS organization, you can use the AWS CLI (Command Line Interface) or AWS SDK (Software Development Kit) in your preferred programming language.

Here are the steps to list all EKS clusters in an AWS organization using AWS CLI:

  1. Install and configure the AWS CLI on your local machine or EC2 instance.
  2. Open your terminal or command prompt and run the following command to list all EKS clusters in the organization:
aws eks list-clusters
  1. If you have multiple AWS accounts under your organization, you need to assume a role in each account to list the EKS clusters in that account. You can use the following command to assume a role:
css
aws sts assume-role --role-arn <arn-of-the-role> --role-session-name "my-eks-session"

Replace <arn-of-the-role> with the ARN of the IAM role that you want to assume. You can find the ARN of the role in the AWS Management Console or AWS CLI.

  1. Once you have assumed the role, you can run the aws eks list-clusters command again to list all EKS clusters in that account.

Repeat steps 3 and 4 for each AWS account under your organization to list all EKS clusters in the organization.

Note: You need to have sufficient IAM permissions to list EKS clusters in an AWS organization.

avatar
Abhay Pednekar
Shared 1 prompt
Created 1 year ago

Leave a Comment

Related Tag Prompts

0
0
AWS Load Balancer Stickiness.
1 year ago 2023-03-09 17:59:06 ps
0
0
Max connections AWS RDS.
1 year ago 2023-03-16 09:28:13 Vitkuz
0
0
opensearch geo query
1 year ago 2023-03-17 00:45:01 jhno
0
0
aws open search
1 year ago 2023-03-17 04:08:15 jhno
0
0
Slack status automation
1 year ago 2023-03-22 10:07:30 Chipokomon
0
0
EC2 Interview Questions.
1 year ago 2023-03-26 10:10:18 Ramesh
0
0
0
0
AWS SAA-003 Exam Mindmap.
1 year ago 2023-04-22 22:22:50 David Proctor
0
3
Host Website on AWS
1 year ago 2023-05-17 11:54:28 Shubham Aggarwal
0
0
aws-app-migration ck list
1 year ago 2023-06-17 06:46:46 amulX
0
0
Querying AppSync Schema API
1 year ago 2023-08-15 13:48:38 Dereck