Skip to content

Instantly share code, notes, and snippets.

@kad1r
Created October 18, 2023 11:36
Show Gist options
  • Save kad1r/feab4473f4160a50bcbe846183b85aca to your computer and use it in GitHub Desktop.
Save kad1r/feab4473f4160a50bcbe846183b85aca to your computer and use it in GitHub Desktop.
AWS Configure

AWS Configure

Open powershell and type aws configure

aws configure
enter access key
enter secret key
enter region
enter output format

To create multiple profiles like dev/qa/staging follow down below.

aws configure --profile your_profile_name
enter access key
enter secret key
enter region
enter output format

List all profiles on your local computer.

aws configure list-profiles

If you want to set one of them default

set AWS_DEFAULT_PROFILE=profile_name

You can also edit aws files on your local computer. Please follow this link.
https://stackoverflow.com/questions/593334/how-to-use-multiple-aws-accounts-from-the-command-line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment