Skip to content

Instantly share code, notes, and snippets.

@sd031
Created July 24, 2020 13:08
Show Gist options
  • Save sd031/5c7b6fbbef7a4d84abd7fcfedf44726a to your computer and use it in GitHub Desktop.
Save sd031/5c7b6fbbef7a4d84abd7fcfedf44726a to your computer and use it in GitHub Desktop.
$ aws configure --profile project_name_1
$ aws configure --profile project_name_2
or can edit the : ~/.aws/credentials file directly
and when doing any service call, mention profile name at the end like this:
aws s3 ls --profile project_name_1
If you are going to work on a particular project for long and will not make any switches, it's better to set the profile as default:
e.g. export AWS_DEFAULT_PROFILE=project_name_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment