-
Notifications
You must be signed in to change notification settings - Fork 4k
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-tasks: CallApiGatewayRestApiEndpoint assumes StateMachine and the API Gateway are in the same region #32289
Comments
Hi @fulcus , thanks for reaching out. for cross-region support , we have this- CallAwsServiceCrossRegion and CallAWSServiceCrossRegionProps. Is this what you are looking for ? |
Hi, thanks for the response. That would surely work as a workaround, however it would be nice to have the native task allow the region option. But it seems that it should be rather integrated in all tasks, probably in the base class. Is this something you are planning to do? |
@fulcus , I am not really sure about this . |
Hi there, thanks for opening this issue. I agree with @khushail that you should use the don’t believe enabling cross-region API calls is as straightforward as simply adding a region property to the base class (though I could be wrong). Let me know if you have any questions! |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
This code assumes that the API GW is in the same region as the step function, and there is no way to specify any other region.
aws-cdk/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.ts
Line 68 in 060af6c
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Be able to specify the region of the API GW.
Current Behavior
Construct assumes that SFn and API GW are in the same region.
Reproduction Steps
Read the code and try to use the
CallApiGatewayRestApiEndpoint
with an API in another region.Possible Solution
A good fix would be to add the region as props to
RestApi.fromRestApiAttributes
, and use that to get the endpoint. Alternatively pass the region as props toCallApiGatewayRestApiEndpoint
.Additional Information/Context
No response
CDK CLI Version
2.162.1
Framework Version
No response
Node.js Version
18
OS
15.1
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: