【发布时间】:2022-04-20 23:22:41
【问题描述】:
cloudformation 模板支持对 SSM 参数的动态引用
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html
文档说明你可以Use the ssm dynamic reference to include values stored in the Systems Manager Parameter Store of type String or StringList in your templates.
我们正在尝试使用语法{{resolve:ssm:parameter-name:version}} 在模板中引用StringList 类型的参数,并将其解析为模板中的字符串列表(更具体地说,是EC2 实例的SecurityGroupId 列表)。这没有奏效,并且文档没有指定如何执行此操作或是否受支持。我们尝试过使用Fn::Split,但似乎在解析动态值之前调用了它。我们无法在模板的参数部分中使用 SSM 值,该部分对此进行了记录。有谁知道是否可以将{{resolve ... 添加到字符串列表中?
【问题讨论】:
-
你能分享你的CF模板吗?有任何错误信息吗?
标签: amazon-cloudformation amazon-systems-manager