Skip to content

fix(cli): hotswapping StateMachines with a name fails#17892

Merged
mergify[bot] merged 5 commits intoaws:masterfrom
comcalvi:sfn-hotswap-fix
Dec 10, 2021
Merged

fix(cli): hotswapping StateMachines with a name fails#17892
mergify[bot] merged 5 commits intoaws:masterfrom
comcalvi:sfn-hotswap-fix

Conversation

@comcalvi
Copy link
Copy Markdown
Contributor

@comcalvi comcalvi commented Dec 7, 2021

Before, when the stateMachineName property was used, the value of stateMachineName was passed directly to the SDK where an ARN was required. Now, when the stateMachineName property is used, we construct the ARN from its value, and pass that ARN to the SDK.

Closes #17716


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@comcalvi comcalvi requested a review from skinny85 December 7, 2021 20:31
@comcalvi comcalvi self-assigned this Dec 7, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Dec 7, 2021

@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Dec 7, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 7, 2021
@comcalvi comcalvi changed the title fix(cli): hotswapping stepFunctions stateMachines with the stateMachineName parameter no longer fails fix(cli): hotswapping stepFunctions stateMachines with the stateMachineName property no longer fails Dec 7, 2021
@skinny85 skinny85 changed the title fix(cli): hotswapping stepFunctions stateMachines with the stateMachineName property no longer fails fix(cli): hotswapping stepFunctions StateMachines with a name fails Dec 8, 2021
@skinny85 skinny85 changed the title fix(cli): hotswapping stepFunctions StateMachines with a name fails fix(cli): hotswapping StateMachines with a name fails Dec 8, 2021
Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! A few minor comments before we merge this in.

@comcalvi comcalvi requested a review from skinny85 December 9, 2021 17:22
Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 10, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: adff178
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit de67aae into aws:master Dec 10, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 10, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
Before, when the `stateMachineName` property was used, the value of `stateMachineName` was passed directly to the SDK where an ARN was required. Now, when the `stateMachineName` property is used, we construct the ARN from its value, and pass that ARN to the SDK.

Closes aws#17716

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS. package/tools Related to AWS CDK Tools or CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(CLI): Hotswap raises Invalid Arn when updating state machine definition

4 participants