amazon-web-services - 如何在cloudformation中过滤aws资源

标签 amazon-web-services aws-cloudformation

我有一个带有这样参数的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/

相关文章:

amazon-web-services - 使用不记名 token 的 AWS Cognito 身份验证

aws-lambda - Cloudformation - 无法导入资源

amazon-ec2 - EC2 实例 Cloudformation - 可用区作为参数传递

amazon-web-services - 删除时,使用 Cloudformation 中定义的生命周期规则将 S3 存储桶对象移动到 Glacier 存储桶

amazon-web-services - 如何使用 Cloudformation 模板在 AWS Elastic Beanstalk 中包含粘性 session

amazon-web-services - 将 Elasticache 与 RDS 连接?

node.js - 服务器发送事件或 Websockets 的 Aws 负载均衡器

amazon-web-services - 从 S3 读取许多小文件非常慢

amazon-web-services - 如何在cfn模板的bucketpolicy中指定多个bucket?

amazon-web-services - 云信息 : What's the best practice of chopping the configuration file?