Search code examples
amazon-web-servicesyamlaws-cloudformationaws-code-deploy

Multiple tag groups for CodeDeploy in Cloudformation in YAML


I'm having a hard time trying to figure out how to add multiple tag groups for CodeDeploy in Cloudformation via YAML.

Here is a example in JSON for Mutiple tag groups with single tag for ec2TagFilters. I know how to create multiple tags in the same tag group, but I can't seem to figure out how to create multiple tag groups using YAML.

Can someone help?

Thank you.


Solution

  • When you're having problems converting between JSON and YAML, you should use tools like this website to help you. I plugged in the documentation you reference, and this is what I got:

    ec2TagSetList:
    - - Key: KEY_AND_VALUE
        Type: Name
        Value: AppVersion-ABC
    - - Key: KEY_AND_VALUE
        Type: Region
        Value: North
    - - Key: KEY_AND_VALUE
        Type: Type
        Value: t2.medium