aws_key_id=YOUR_KEY_ID
aws_secret_access_key=
printf "[default]\nregion = us-west-2\n" > $HOME/.aws/config
printf "[default]\naws_access_key_id=${aws_key_id}\naws_secret_access_key=${aws_secret_access_key}\n" > $HOME/.aws/credentials
chmod 600 $HOME/.aws/config $HOME/.aws/credentials
it would be really helpful. Many times I see people confused about this.
ReplyDeletetbsbet