Monday, August 23, 2021

Process of access AWS EKS

 Here are the steps to access AWS EKS from command line.

1. Create a config file in ~/.aws directory named config with the following content
[default] region = us-east-1 output = json
2. Create a credential file in ~/.aws directory named credentials with the following content, make sure that you use your own access key id and secret which should be available when you create them via AWS console
[default] aws_access_key_id = XXXXXX aws_secret_access_key = XXXXXXXXXXXXXX
3. Update kubeconfig and current context
aws eks --region <region-code> update-kubeconfig --name <cluster_name>
The region code should be us-east-1 if use the above example in config file. The name should be your eks cluster name

No comments:

Post a Comment