cdklabs / cdklabs/cdk-cicd-wrapper

[BUG] Disabling selfMutation results in cdknag exception

Open
#136 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
34
Forks
9
Avg merge
2h 57m
Merged PRs (30d)
48

Description

### Describe the bug

Disabling selfMutation with `pipeline.pipelineOptions( { selfMutation: false } );` results in the following errors due to: `@cdklabs/cdk-cicd-wrapper/src/code-pipeline/CDKPipeline.ts:269:21`

### Expected Behavior

Synth succeeds

### Current Behavior

```Error: Suppression path "CdkPipeline/UpdatePipeline" did not match any resource. This can occur when a resource does not exist or if a suppression is applied before a resource is created.```

### Reproduction Steps

Add `pipeline.pipelineOptions( { selfMutation: false } );` to example pipeline.

### Possible Solution

Check for flag for suppression, also consider adding exception handling for suppressions (seems there's no soft-fail)

### Additional Information/Context

_No response_

### CDK CI/CD Wrapper version used

0.2.19

### Environment details (OS name and version, etc.)

-

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.