I am trying to execute a bash script to fetch the ec2 cost details from aws. while executing the script i get the following eror
Required option '-O, --aws-access-key KEY' missing (-h for usage)
I have exported the keys inside my script as well as using "aws configure"
export AWS_CONFIG_FIL="~/.aws/config"
export AWS_CREDENTIAL_PROFILES_FILE="~/.aws/credentials"
export AWS_ACCESS_KEY_ID=*******************
export AWS_SECRET_ACCESS_KEY=*******************************
but still i get the same error. Any help on this would be appreciated. Thanks
echo $AWS_ACCESS_KEY_IDin the bash script before calling cost details just to make sure it is correctly set. Or useaws configureand set your credentials.set -xat the beginning of the script and find out which command is complaining