using Cloudformation ref with awscli in userData
问题 "aws ec2 create-tags --resources xxxxxx --tags Key=Team,Value=everybody --region { \"Ref\" : \"region\" } --out text\n" The above line/command I am using in my Cloudformation userData, It is not getting executed , I am getting the following error when I debugged : aws: error: argument --region: Invalid choice, valid choices are: ap-southeast-1 | us-gov-west-1 ap-northeast-1 | eu-west-1 fips-us-gov-west-1 | us-west-1 us-west-2 | us-east-1 cn-north-1 | ap-southeast-2 sa-east-1 My region name is