Last active
February 18, 2024 01:23
-
-
Save jackylamhk/16d01310de27f0d9527322d2fc8f6f8b to your computer and use it in GitHub Desktop.
Configure default AWS profile on GitHub Actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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