Skip to content

Instantly share code, notes, and snippets.

@jackylamhk
Last active February 18, 2024 01:23
Show Gist options
  • Save jackylamhk/16d01310de27f0d9527322d2fc8f6f8b to your computer and use it in GitHub Desktop.
Save jackylamhk/16d01310de27f0d9527322d2fc8f6f8b to your computer and use it in GitHub Desktop.
Configure default AWS profile on GitHub Actions
export AWS_PROFILE=default
aws configure set region $AWS_DEFAULT_REGION --profile $AWS_PROFILE
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile $AWS_PROFILE
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile $AWS_PROFILE
aws configure set aws_session_token $AWS_SESSION_TOKEN --profile $AWS_PROFILE
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_REGION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment