Create Shell script to export Keys for username

PHOTO EMBED

Sun Dec 06 2020 19:51:47 GMT+0000 (Coordinated Universal Time)

Saved by @ankity09 #aws

cat << EoF > username_cred.sh
export AWS_SECRET_ACCESS_KEY=$(jq -r .AccessKey.SecretAccessKey /tmp/create_output.json)
export AWS_ACCESS_KEY_ID=$(jq -r .AccessKey.AccessKeyId /tmp/create_output.json)
EoF
content_copyCOPY