I am working on setting up something with S3 and Chef, I have AWS CLI installed and working but I need to figure out how to specify the access ID
and the secret access key
. I know there are cookbooks out there for this but I have tried a few with no luck so I am not using anyone else's cookbooks for this project anymore.
Suggestions on how I can run aws configure
and then output the correct value for each of the 4 things it asks?
Code in my script to set env variables:
export AWS_ACCESS_KEY_ID=<key>
export AWS_SECRET_ACCESS_KEY=<secret_key>
export AWS_DEFAULT_REGION=<region>
echo $AWS_DEFAULT_REGION
to verify that it worked correctly.