Skip to content

Support objects in FN::Map #14

@hoegertn

Description

@hoegertn

I would really love the following to be possible:
(syntax is just a proposal)

"Fn::Map": [
            [
              {"zone":"a","net":"0"},
              {"zone":"b","net":"1"},
              {"zone":"c","net":"2"}
            ],
            "az",
            {
              "Subnet${az.zone}": {
                "Type": "AWS::EC2::Subnet",
                "Properties": {
                  "VpcId": {
                    "Ref": "VPC"
                  },
                  "AvailabilityZone": {
                    "Fn::Join": [
                      "",
                      [
                        {
                          "Ref": "AWS::Region"
                        },
                        "${az.zone}"
                      ]
                    ]
                  },
                  "CidrBlock": "192.168.${az.net}.0/24",
                  "MapPublicIpOnLaunch": true
                }
              }
            }
          ]

@monken Do you think this is possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions