You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding tags parameter option to cdk deploy command to allow tagging full stacks and their associated resources.
Now it will be possible to:
```
const app = new App();
const stack1 = new Stack(app, 'stack1', { tags: { foo: 'bar' } });
const stack2 = new Stacl(app, 'stack2');
stack1.node.apply(new Tag('fii', 'bug'));
stack2.node.apply(new Tag('boo', 'bug'));
```
That will produce
* stack1 with tags `foo bar` and `fii bug`
* stack2 with tags `boo bug`
It is possible also to override constructor tags with the stack.node.apply.
So doing:
```
stack1.node.apply(new Tag('foo', 'newBar');
```
stack1 will have tags `foo newBar` and `fii bug`
Last, but not least, it is also possible to pass it via arguments (using yargs) as in the following example:
```
cdk deploy --tags foo=bar --tags myTag=myValue
```
That will produce a stack with tags `foo bar`and `myTag myValue`
**Important**
That will ignore tags provided by the constructor and/or aspects.
Fixes#932
0 commit comments