Skip to content

(pipelines): versionReporting and --no-version-reporting not respected for support stacks #18933

@gshpychka

Description

@gshpychka

What is the problem?

The pipeline is adding AWS::CDK::Metadata resource to the support stacks regardless of the versionReporting value and even if the synth command is cdk --no-version-reporting synth.

Reproduction Steps

  1. Have "versionReporting": false in cdk.json
  2. Alternatively, specify the synth command as cdk --no-version-reporting synth in the Synth step
  3. Deploy the pipeline. Verify that the support stacks do not have the AWS::CDK::Metadata resource.
  4. Wait for the pipeline to self-mutate the first time

What did you expect to happen?

No changes to the support stacks.

What actually happened?

The self-mutate action adds the AWS::CDK::Metadata to the support stacks.

If I do a cdk deploy from my local machine again, the resource will be deleted.

CDK CLI Version

2.12.0

Framework Version

2.12.0

Node.js Version

17.3.0

OS

ArcLinux

Language

Python

Language Version

3.9.10

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions