AWS CLI
Install as user
mkdir ~/apps ~/bin
bash install --install-dir ~/apps/aws-cli --bin-dir ~/bin
~/bin/aws --version
aws configure sso
List profiles
aws configure list-profiles
Login to a sso profile
aws sso login --profile=profile
Choose profile
export AWS_PROFILE=profile
List s3 buckets
aws s3 ls --profile myprofile
Get my kubeconfig
export AWS_PROFILE=myprofile
aws eks update-kubeconfig --region region-code --name my-cluster --kubeconfig pathtomykubeconfig
Login to ecr
aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com
Other
aws eks get-token --cluster-name my-cluster
aws sts get-caller-identity
aws sts get-session-token