Sunday 29 December 2019

AWS config setting in EC2 instance


kiyoungh:~/environment $ cat < ~/.aws/config
> [default]
> region=us-west-2
> END

kiyoungh:~/environment $ cd ~/

kiyoungh:~ $ pwd
/home/ec2-user

kiyoungh:~ $ cd .aws

kiyoungh:~/.aws $ ls -al
total 16
drwxr-xr-x  2 ec2-user ec2-user 4096 Dec 30 02:16 .
drwx------ 15 ec2-user ec2-user 4096 Dec 30 02:16 ..
-rw-rw-r--  1 ec2-user ec2-user   27 Dec 30 02:16 config
-rw-r--r--  1 ec2-user ec2-user 1475 Dec 30 02:09 credentials

kiyoungh:~/.aws $ cat config
[default]
region=us-west-2

kiyoungh:~/.aws $

No comments: