【发布时间】:2019-02-06 22:07:28
【问题描述】:
我的堆栈环境和 iamprofileName 中有两个属性。如果我选择非产品环境之一,即“use1dev”、“use1qa”。我应该将 MyPlatformEC2NonProd 作为“IAMProfileName”中的默认值
如果我选择其中一个产品环境,即“useProd1”、“useProd2”。我必须在“IAMProfileName”中将 MyPlatformEC2Prod 作为默认值
我怎样才能做到这一点
"Environment" : {
"Description" : "Environment being deployed to - use1dev, use1qa,
use1sbox etc",
"Type" : "String",
"Default" : "use1sbox",
"AllowedValues" : ["use1dev","use1qa","useProd1","useProd2"]
},
"IAMProfileName" : {
"Default" : "MyPlatformEC2",
"Type" : "String",
"Description" : "Name of IAM profile to attach to created
machines",
"AllowedValues" : ["MyPlatformEC2","MyPlatformEC2NonProd"]
【问题讨论】:
标签: json amazon-cloudformation