Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-stepfunctions-task] misconfigured parition in the resourceArn of service integrations #4597

Closed
wqzoww opened this issue Oct 21, 2019 · 0 comments · Fixed by #4598
Closed
Assignees
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions bug This issue is a bug. in-progress This issue is being actively worked on. needs-triage This issue or PR still needs to be triaged.

Comments

@wqzoww
Copy link
Contributor

wqzoww commented Oct 21, 2019

When users create a Task state to call other AWS services, the partition in the "resourceArn" is hard-coded as "aws". This behavior causes trouble in Chinese regions where the partition is "aws-cn", rather than "aws".

With CDK, users can create their state machine correctly with "cdk deploy" but they can't start an execution properly with misconfigured ARN.

Reproduction Steps

See https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-stepfunctions-tasks/test/publish-to-topic.test.ts#L19

Error Log

When users click on "Start execution" button on AWS Step Functions' console, they will get

{
  "error": "States.Runtime",
  "cause": "An error occurred while executing the state 'HelloWorld' (entered at the event id #2). The resource belongs to a different partition from the running execution."
}

Environment

  • **CDK Version :1.13.1
  • **OS : Mac 10.14.6
  • **Language : Typescript

This is 🐛 Bug Report

@wqzoww wqzoww added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 21, 2019
wqzoww added a commit to wqzoww/aws-cdk that referenced this issue Oct 21, 2019
@SomayaB SomayaB added the in-progress This issue is being actively worked on. label Oct 21, 2019
@SomayaB SomayaB added the @aws-cdk/aws-stepfunctions Related to AWS StepFunctions label Oct 21, 2019
@mergify mergify bot closed this as completed in #4598 Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions bug This issue is a bug. in-progress This issue is being actively worked on. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants