简体   繁体   English

标记CloudFormation和基础资源

[英]Tag CloudFormation and underlying resources

I have a CloudFormation template in which I have to tag every resource seperately. 我有一个CloudFormation模板,在其中必须分别标记每个资源。 Can I provide tags to the stack and all underlying resources which can have tags automatically (without creating a nested stack)? 我可以为堆栈提供标签以及所有可以自动包含标签的基础资源(无需创建嵌套堆栈)吗?

The following tags automatically added by cloudformation 以下标签由cloudformation自动添加

  • aws:cloudformation:logical-id AWS:cloudformation:逻辑-ID
  • aws:cloudformation:stack-id AWS:cloudformation:堆栈ID
  • aws:cloudformation:stack-name AWS:cloudformation:堆栈名

Most resources that support Tags, have a property in their Cloudformation snippet to support Tags. 大多数支持标签的资源在其Cloudformation片段中都有一个属性来支持标签。

Some resources also have a PropogateAtLaunch like LaunchConfigurations. 一些资源还具有ProbootgateAtLaunch,例如LaunchConfigurations。 More information from AWS 来自AWS的更多信息

What were you trying to achieve? 您想达到什么目的? Better view for Cost Center, AWS Console, AWS CLI or something else 更好地查看成本中心,AWS控制台,AWS CLI或其他内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM