Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify Tags across all resources #1516

Closed
AlexChesters opened this issue Jan 10, 2019 · 4 comments
Closed

Ability to specify Tags across all resources #1516

AlexChesters opened this issue Jan 10, 2019 · 4 comments
Labels
@aws-cdk/core Related to core CDK functionality feature-request A feature should be added or improved.

Comments

@AlexChesters
Copy link
Contributor

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 😄

@rix0rrr
Copy link
Contributor

rix0rrr commented Jan 11, 2019

It does not exist yet. There is some work being done in a PR (#1007) but this is far from done yet. So I'm sorry, does not work at the moment.

Related issue: #932

@rix0rrr rix0rrr added @aws-cdk/core Related to core CDK functionality feature-request A feature should be added or improved. gap labels Jan 11, 2019
@AlexChesters
Copy link
Contributor Author

Ah I see, thanks @rix0rrr! I did try and see if there was any other relevant issues open but I must have missed that one 😄

@rix0rrr
Copy link
Contributor

rix0rrr commented Jan 11, 2019

No problem, just trying to tie things together for easy reference in the future :).

@eladb
Copy link
Contributor

eladb commented Mar 4, 2019

Resolved by #1451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

3 participants