0

我正在通过 Cloudformation (AWS::SSM::Parameter) 创建一个 SSM 参数。从文档中有一个“策略”属性:

Policies
Information about the policies assigned to a parameter.

Working with Parameter Policies in the AWS Systems Manager User Guide.

Required: No

Type: String

Update requires: No interruption

文档中没有关于如何格式化字符串的示例或指南。我目前的CFN模板如下:

Conditions:
  IsAdvancedParameter: !Equals [!Ref ParamTier, "Advanced"]
Resources:
  ParamOne:
    Type: AWS::SSM::Parameter
    Properties:
      Name: !Ref ParamName
      Policies:
        Fn::If:
          - IsAdvancedParameter
          - # What should go here???
          - !Ref AWS::NoValue
      Tier: !Ref ParamTier
      Type: SecureString
      Value: !Ref ParamVal

有没有人想过这个?

4

0 回答 0