AWS CloudFormation可以使用元数据中处理参数堆栈屏幕的条件吗?

时间:2018-01-14 15:09:02

标签: amazon-web-services amazon-cloudformation

我正在尝试在高级对象If/Else中创建Metadata语句。它在Resources级别中工作,但在运行堆栈时的参数屏幕中显示所有参数。也许这是不可能的。当选项为True时,它显示参数,但是当它为false时,它将隐藏它们。默认情况下为假

AWSTemplateFormatVersion: 2010-09-09
Metadata:
  'AWS::CloudFormation::Interface':
    ParameterGroups:
      - Label:
          default: AWS CloudFormation Bucket Info
        Parameters:
          - pOption
          - pS3BucketName
          - pS3KeyPrefix
    ParameterLabels:
      pOption:
        default: Do you want to run this option
      pS3BucketName:
        default: S3 Bucket
      pS3KeyPrefix:
        default: S3 Key Prefix
  'AWS::CloudFormation::Designer':
Parameters:

感谢您的帮助!

0 个答案:

没有答案
相关问题