Bash script to install AWS CLI tools

后端 未结 3 2220
再見小時候
再見小時候 2021-02-13 08:53

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:52

    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.

提交回复
热议问题