我有一个带有这样参数的cloudformation模板
Subnet:
Type: 'AWS::EC2::Subnet::Id'
这给了我一个子网下拉列表。我想将它们过滤掉,以便只有那些标签包含特定字符串的标签才会显示在下拉列表中。
有没有办法使用AllowedValues
来指定这一点?
最佳答案
I would like to filter them out
遗憾的是没有这种可能性。您必须遍历整个列表或对 AllowedValues
中的几个子网进行硬编码。
关于amazon-web-services - 如何在cloudformation中过滤aws资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66646414/