Skip to content

Instantly share code, notes, and snippets.

View sleepy-mouse's full-sized avatar
🎯
Focusing

Sleepy Mouse sleepy-mouse

🎯
Focusing
View GitHub Profile
@sleepy-mouse
sleepy-mouse / AWS-CLI-V2.md
Last active March 15, 2022 12:47
[AWS_CLI,CLI] AWS CLI V2
@sleepy-mouse
sleepy-mouse / Using-profiles-with-the-AWS-CLI.md
Last active March 11, 2022 00:46
[AWS_CLI,CLI] Using profiles with the AWS CLI

To use a named profile, add the --profile <PROFILE_NAME> option to your command.

aws ec2 describe-instances --profile user1

To use a named profile for multiple commands, set the AWS_PROFILE environment variable

  • Linux/MacOS: export AWS_PROFILE=user1
  • Windows: setx AWS_PROFILE user1

Resources