Bash script to install AWS CLI tools

后端 未结 3 1771
时光取名叫无心
时光取名叫无心 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:43

    the best practice is to install the awscli utility by BASH and copy the file from your own specified location of 2 files

    without hitting

    #aws configure 
    

    command these files will not get created, you can copy and paste the files using bash script and get all the execution done

    ~/.aws/credintials
    ~/.aws/config
    

    where credentials contains

    [default]
    aws_access_key_id=ABCDEFGHIJKLMNOP
    aws_secret_access_key=xbdwsdADDS/ssfsfa/afzfASADQASAd
    

    and config file contains

    [default]
    output=json
    region=us-west-2
    

    This will help you to keep the keys at one place and you can also push the same for your execution for any CMT tool as well like Ansible.

提交回复
热议问题