Skip to content

Instantly share code, notes, and snippets.

@Zeryther
Created March 23, 2023 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zeryther/89c89d1e8f2933e3f690d75e131bcca4 to your computer and use it in GitHub Desktop.
Save Zeryther/89c89d1e8f2933e3f690d75e131bcca4 to your computer and use it in GitHub Desktop.
Quickly test AWS account credentials with Docker
# Enter your Access Key ID and Secret Access Key below to quickly test credentials without having to reconfigure your host machine
docker run --rm -e AWS_ACCESS_KEY_ID=<your_access_key_id> -e AWS_SECRET_ACCESS_KEY=<your_secret_access_key> amazon/aws-cli sts get-caller-identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment