Last active
November 24, 2022 06:07
-
-
Save seunggabi/f8224d33b81dca80ded01b9a5888030c to your computer and use it in GitHub Desktop.
aws-cli-configure.sh
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
brew install awscli | |
#aws configure | |
#AWS Access Key ID [None] : [발급받은 IAM의 Access Key ID] | |
#AWS Secret Access Key [None] : [발급받은 IAM의 Secret Access Key] | |
#Default region name [None] : ap-northeast-2[서울 리전] | |
#Default output format [None] : | |
mkdir -p ~/.aws | |
rm ~/.aws/config | |
cat <<EOT >> ~/.aws/config | |
[default] | |
region = ap-northeast-2 | |
EOT | |
rm ~/.aws/credentials | |
cat <<EOT >> ~/.aws/credentials | |
[default] | |
aws_access_key_id = | |
aws_secret_access_key = | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://unix.stackexchange.com/questions/77277/how-to-append-multiple-lines-to-a-file/77278#77278