cdk-pipelines-github icon indicating copy to clipboard operation
cdk-pipelines-github copied to clipboard

Cannot tag Cloudformation stack

Open dil-bagoston opened this issue 2 years ago • 1 comments

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?

dil-bagoston avatar Sep 25 '23 11:09 dil-bagoston