-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-codepipelineRelated to AWS CodePipelineRelated to AWS CodePipelinebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1
Description
Describe the Bug
I have a State Machine from another region that is being imported to CDK via StateMachine.fromStateMachineArn. When this state machine is added as cross-region StepFunctionInvokeAction to the pipeline an error is thrown.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
Cross-region action can be added to the pipeline.
Current Behavior
Error: Stack name must match the regular expression: /^[A-Za-z][A-Za-z0-9-]*$/, got '${Token[TOKEN.840]}-support-eu-west-1'
at new Stack (node_modules/aws-cdk-lib/core/lib/stack.js:1:2505)
at new CrossRegionSupportStack (node_modules/aws-cdk-lib/aws-codepipeline/lib/private/cross-region-support-stack.js:1:1798)
at Pipeline.createSupportResourcesForRegion (node_modules/aws-cdk-lib/aws-codepipeline/lib/pipeline.js:1:10279)
at Pipeline.obtainCrossRegionSupportFor (node_modules/aws-cdk-lib/aws-codepipeline/lib/pipeline.js:1:9122)
at Pipeline.ensureReplicationResourcesExistFor (node_modules/aws-cdk-lib/aws-codepipeline/lib/pipeline.js:1:8644)
at Pipeline._attachActionToPipeline (node_modules/aws-cdk-lib/aws-codepipeline/lib/pipeline.js:1:7708)
at Stage.attachActionToPipeline (node_modules/aws-cdk-lib/aws-codepipeline/lib/private/stage.js:1:3087)
at Stage.addAction (node_modules/aws-cdk-lib/aws-codepipeline/lib/private/stage.js:1:1716)
at new Stage (node_modules/aws-cdk-lib/aws-codepipeline/lib/private/stage.js:1:678)
at Pipeline.addStage (node_modules/aws-cdk-lib/aws-codepipeline/lib/pipeline.js:1:6662)
Reproduction Steps
- Import a state machine from another region using StateMachine.fromStateMachineArn
- Add StepFunctionInvokeAction to a stage in the pipeline and use the imported state machine.
Possible Solution
NA
Additional Information/Context
No response
CDK CLI Version
2.158.0
Framework Version
No response
Node.js Version
18.20.4
OS
WSL Ubuntu 20
Language
TypeScript
Language Version
~4.6.4
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-codepipelineRelated to AWS CodePipelineRelated to AWS CodePipelinebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1