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
Use a configuration file rather than the aws configure command. Create a file called ~/.aws/config that looks like this:
aws configure
~/.aws/config
[default] aws_access_key_id=AKIAIOSFODNN7EXAMPLE aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY region=us-west-2 output=json
More info in the docs.