Skip to content

Ability to specify Tags across all resources #1516

@AlexChesters

Description

@AlexChesters

We have a common set of tags that we apply to all of our AWS resources where possible. These tags are normally used for organisation purposes, such as cost allocation.

Is it possible to define a set of tags that could be applied to all resources that support them? Ideally we'd like an API that looked something like this

export default class Stack extends cdk.Stack {
  constructor (parent: cdk.App, name: string, props?: cdk.StackProps) {
    super(parent, name, props)
    this.setGlobalTags({ ComponentName: 'MyComponent', ChargeCode: 'S-XXX' })
  }
}

I've read through an issue (#91) but it's unclear to me if:

  1. Something exists for our use case
  2. If it does exist, how it can be used

Thanks in advance 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalityfeature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions