Bash script to install AWS CLI tools

后端 未结 3 1777
时光取名叫无心
时光取名叫无心 2021-02-13 09:12

I am writing a bash script that will automatically install and configure AWS CLI tools. I am able to install AWS CLI tools but unable to configure it.

My script is some

3条回答
  •  臣服心动
    2021-02-13 09:36

    Use a configuration file rather than the aws configure command. Create a file called ~/.aws/config that looks like this:

    [default]
    aws_access_key_id=AKIAIOSFODNN7EXAMPLE
    aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
    region=us-west-2
    output=json
    

    More info in the docs.

提交回复
热议问题