-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(CLI): Hotswap raises Invalid Arn when updating state machine definition #17716
Copy link
Copy link
Closed
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.p1package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Description
What is the problem?
CDK deploy with hotswap fails with Invalid ARN prefix error as follows when updating a state definition :
> cdk deploy --hotswap
.......
MyWorkflow123456 failed: InvalidArn: Invalid Arn: 'Invalid ARN prefix: MyWorkflow123456'
at Request.extractError (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/protocol/json.js:52:27)
at Request.callListeners (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:688:14)
at Request.transition (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/state_machine.js:14:12)
at ####/node_modules/aws-cdk/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:690:12)
at Request.callListeners (####/node_modules/aws-cdk/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
code: 'InvalidArn',
time: 2021-11-25T16:08:44.977Z,
requestId: '###################',
statusCode: 400,
retryable: false,
retryDelay: 40.19606554280166
}
Invalid Arn: 'Invalid ARN prefix: MyWorkflow123456'
This may be due to this:
| // even though the name of the property is stateMachineArn, passing the name of the state machine is allowed here |
Reproduction Steps
Deploying with --hotswap a state machine in my AWS / CDK environment. A normal deploy (without hotswap) works fine.
What did you expect to happen?
AWS Step Functions State machine updated successfully with hotswap.
What actually happened?
Command line failure to update AWS Step Functions state machine.
CDK CLI Version
1.134.0 (build dd5e12d)
Framework Version
No response
Node.js Version
16.13.0
OS
macOS 12.0.1 (Monterey)
Language
Typescript
Language Version
4.4.3
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.p1package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI