代码之家  ›  专栏  ›  技术社区  ›  Andremoniy

在CloudFormation模板中为特定资源分配标记

  •  0
  • Andremoniy  · 技术社区  · 7 年前

    CloudFormation VPNGateway . 我在模板设计器中没有看到任何特定的形式,因此,我想,我应该在JSON模板描述中手动添加适当的键值。

    假设这个模板块 看起来像:

       "XXXXXX": {
                "Type": "AWS::EC2::VPNGateway",
                "Properties": {},
                "Metadata": {
                    "AWS::CloudFormation::Designer": {
                        "id": "xxxxx-yyyy-zzzzz"
                    }
                }
            }
    

    test:key test:value ".

    1 回复  |  直到 7 年前
        1
  •  1
  •   Andremoniy    7 年前

    这应该在 Properties

            "Properties": {
                "Tags": [
                    {
                        "Key": "test:key",
                        "Value": "test:value"
                    }
                ]
            },