sts output in aws2tf.sh assumes JSON
mysticole928 opened this issue · 1 comments
mysticole928 commented
This command gets the AWS account information.
My default output for the CLI is text. This cause it to crash.
aws sts get-caller-identity | jq .Account | tr -d '"'
I changed this line in the script to:
aws sts get-caller-identity --output json | jq .Account | tr -d '"'
The error went away.
awsandy commented
incorporated --output json as suggested.
Thank you