Open
Description
Describe the bug
I have a CodePipline pipeline built by CDK pipelines.
After upgrading to aws-cdk-lib 2.188.0,
cdk diff
tells me the action name FileAssets
in the stage Assets
is about to be changed to a strange name.
This seems occur when pipline's publishAssetsInParallel
is false.
[~] AWS::CodePipeline::Pipeline CodePipeline CodePipelineB74E5936
└─ [~] Stages
└─ @@ -119,7 +119,7 @@
[ ] "Name": "Synth_Output"
[ ] }
[ ] ],
[-] "Name": "FileAsset",
[+] "Name": "MyApp_MyAppStage_Next_Custom_S3AutoDeleteObjectsCustomResourceProvider_Code",
[ ] "RoleArn": {
[ ] "Fn::GetAtt": [
[ ] "PipelineCodeBuildActionRole226DB0CB",
[~] AWS::CodeBuild::Project Pipeline/Assets/FileAsset PipelineAssetsFileAsset5D8C5DA6 may be replaced
└─ [~] Description (may cause replacement)
├─ [-] Pipeline step MyApp/CodePipeline/Assets/FileAsset
└─ [+] Pipeline step MyApp/CodePipeline/Assets/MyApp_MyAppStage_Next_Custom_S3AutoDeleteObjectsCustomResourceProvider_Code
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
2.186.0
Expected Behavior
No template changes.
Current Behavior
The name of action FileAssets
has been changed.
Reproduction Steps
The snnipet of my pipeline follows:
const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
synth: new pipelines.ShellStep('Synth', {
input: pipelines.CodePipelineSource.connection('repo/name', 'main', { connectionArn }),
commands: ['cdk synth'],
}),
publishAssetsInParallel: false, // HERE
});
pipeline.addStage(
new MyAppStage(this, 'MyAppStage'); // stage includes one or more assets
);
Possible Solution
Submitted #34049.
Additional Information/Context
No response
CDK CLI Version
2.1007.0 (build d3f6c3c)
Framework Version
No response
Node.js Version
22.14.0
OS
Ubuntu
Language
TypeScript
Language Version
No response
Other information
No response