cdklabs / cdklabs/cdk-pipelines-github

Cannot tag Cloudformation stack

Open
#730 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
384
Forks
45
Avg merge
1d 1h
Merged PRs (30d)
4

Description

For my project it would be cool to tag the application stacks` Cloudformation stacks. For certain short-lived envs, we introduce a specific tag, which we would use for our cleanup process. I tried to tag the application stacks as I did for the Codepipeline solution like this:
```
export class ApplicationStage extends Stage {
constructor(scope: Construct, id: string, props: ApplicationStageProps) {
super(scope, id, props);
const stack = new ApplicationStack(this, 'app', {
envName: props.envName,
isDevBranch: props.isDevBranch,
branchName: props.branchName,
});
Object.entries(props.tags).forEach(([key, value]) => {
Tags.of(stack).add(key, value);
});
}
}
```
For the traditional Codepipeline solution, this solution tags the Cloudformation stack of the application, but unfortunately in GithubActions, this does not set the tags for me.
Could you please help me out with this issue?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.