AWS Cloudformation parameter dependency

后端 未结 3 1069
天命终不由人
天命终不由人 2021-02-20 10:53

I\'m trying to do the following:

\"Parameters\": {
    \"InterfaceMode\" : {
        \"Description\": \"Configure instance to run in onearm or inline mode\",
           


        
3条回答
  •  时光取名叫无心
    2021-02-20 11:43

    Unfortunately, if you want a Parameter to be optional, you can not use any of the AWS-specific parameter types (i.e. AWS::*). None of your hoped-for workarounds will work, either. I'd recommend a type String with an AllowedPattern set to something like ^(subnet-[0-9a-fA-F]{8})?$, but this will not meet your requirement of making the drop-down prepopulated with existing subnet values.

提交回复
热议问题