Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

Version 1 Current »

SSO is used for Programatic access and to login to AWS console.

  1. Open URL for SSO [https://example.awsapps.com/start].

  2. Use your SSO [username] and [password] to sign in.

  3. Click on Management console to open AWS console or click on Command line or programmatic access for programmatic access.

  4. After clicking on Command line or programmatic access use temporary keys by clicking on Click to copy these commands and paste the credentials in terminal.

Another option is to use aws-vault with SSO.

  1. Install aws-vault.

  2. vim .aws/config

  3. Paste the SSO config in the file:

    [profile example-dev]
    sso_start_url=https://example.awsapps.com/start
    sso_region=us-west-1
    sso_account_id=987654321
    sso_role_name=AdministratorAccess
    region=us-west-1
  4. Use aws-vault exec command to exec to AWS account. For example, to exec to example-dev use aws-vault exec example-dev . This command redirects to web and waits for you to login to SSO and allow the request.

After both options you will be able to exec to EKS cluster.

  1. aws eks update-kubeconfig --name [cluster-name] --region [region-name]

  2. Use this command to get all pods from all namespaces:
    kubectl get pods -A

  3. Use this command to exec to one of pods:
    kubectl exec -it pod/[pod-name] /bin/bash

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.