动态生成的映射?

时间:2019-07-22 19:56:49

标签: amazon-web-services amazon-cloudformation troposphere

我可以定义根据其他映射结果构建的映射吗?例如。

    template.add_mapping(
        "MyMapping", 
        {
            "key1":FindInMap("AnotherMapInTemplate", "someKey"),             
            "key2":FindInMap("AnotherAnotherMapInTemplate", "anotherKey")
        }
    )

我需要这样做,因为我从其他模板导入了一些映射,然后需要组合这些映射以在根模板中使用。这可能吗?

0 个答案:

没有答案