【发布时间】:2017-01-11 20:25:43
【问题描述】:
"aws ec2 create-tags --resources xxxxxx --tags Key=Team,Value=everybody --region { \"Ref\" : \"region\" } --out text\n"
我在 Cloudformation userData 中使用的上述行/命令,它没有被执行,我在调试时收到以下错误:
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
我的地区名称作为 Cloudformation 脚本的输入参数。这就是我在--region 选项中使用ref 的原因。
这是错的吗?
是否可以在 Cloudformation 中将 ref 与 awscli 命令一起使用?
谢谢
【问题讨论】:
标签: aws-cli amazon-cloudformation