【发布时间】:2019-02-22 18:21:06
【问题描述】:
我试图了解 CloudFormation 在将标签应用到它创建的资源方面的行为。
根据他们的文档 - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
In addition to any tags you define, AWS CloudFormation automatically creates the following stack-level tags with the prefix aws::
aws:cloudformation:logical-id
aws:cloudformation:stack-id
aws:cloudformation:stack-name
我从 CloudFormation 创建了一个 DynamoDB 表,我访问了 DynamoDB 控制台并选择了标签选项卡,但找不到任何要添加的特定标签。我也没有找到添加的 aws:cloudformation:logical:id 标签。
然后我尝试使用 CloudFormation 创建一个 S3 存储桶。这似乎可行,我能够访问 S3 控制台并找到 S3 存储桶的 aws:cloudformation:logical-id 标记。
这是某种不一致吗?是否有任何特定的文档可以用来查找 CloudFormation 应用前缀为 aws: 的标签的 AWS 资源列表,如文档中所述?
任何帮助将不胜感激。谢谢!
【问题讨论】:
-
我注意到标签也没有用于 ECS 相关资源。
标签: amazon-web-services amazon-cloudformation