티스토리 뷰

공부

[aws] cli

승가비 2022. 11. 24. 14:30
728x90

https://gist.github.com/seunggabi/f8224d33b81dca80ded01b9a5888030c

 

aws-cli-configure.sh

aws-cli-configure.sh. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

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

https://longtermsad.tistory.com/13

 

Mac OS에 AWS Cli 설정하기

AWS Cli 란? AWS 커맨드 라인 인터페이스(AWS Command Line Interface, aws cli)는 AWS 서비스를 관리하는 통합 도구입니다. 여러 AWS 서비스를 명령줄에서 제어하고 스크립트를 통해 자동화할 수 있습니다. 설

longtermsad.tistory.com

https://unix.stackexchange.com/questions/77277/how-to-append-multiple-lines-to-a-file/77278#77278

 

How to append multiple lines to a file

I am writing a bash script to look for a file if it doesn't exist then create it and append this to it: Host localhost ForwardAgent yes So "line then new line 'tab' then text" I think its a

unix.stackexchange.com

 

728x90
댓글