Skip to content

Aws Cli Tips

AWS CLI tips#

View your identity#

aws sts get-caller-identity

Example output:

{
    "UserId": "AROAXXXXXXX:i-065fb72xxxxxxx",
    "Account": "4xxxxxxx",
    "Arn": "arn:aws:sts::4xxxxxxx:assumed-role/all-services.fixes.dev-ec2-role/i-065fb72xxxxxx"
}

Generate a kubeconfig#

aws eks update-kubeconfig --name my-qa-env --alias qa --profile my-aws-cli-profile

This will create your ~/.kube/config file