-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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-apigateway): StepFunctionsRestApi
does not pass on path
#27309
Comments
Two questions:
|
A post request goes through if the root is used: If a specific path is used it doesn't work: Making calls via API Gateway Console works just the same as with curl:
|
Describe the bug
The construct
StepFunctionsRestApi
seems to be buggy regardingpath
handling.Expected Behavior
When using
StepFunctionsRestApi
withpath: true
I expect my underlying Step Function to receive the path.Current Behavior
Passing a path (also tried different depths combinations like:
...prod/users/4
or.../prod/12
) leads to a{"message":"Missing Authentication Token"}
see:
curl -X GET "https://XXXXXXXX.execute-api.eu-central-1.amazonaws.com/prod/123" {"message":"Missing Authentication Token"}
Reproduction Steps
deploy this (almost) minimal example:
and send a similar request to the created API:
curl -X GET "https://${apigatewayid}.execute-api.eu-central-1.amazonaws.com/prod/123"
Possible Solution
No response
Additional Information/Context
I can workaround the problem by creating a proxy integration manually on the API but I guess that is not the idea here.
see
Does the current implementation on the vtl
packages/@aws-cdk/aws-apigateway/lib/integrations/stepfunctions.vtl
only work for key value pairs (regarding paths)?CDK CLI Version
2.97.0
Framework Version
2.97.0
Node.js Version
v18.14.0
OS
macos 14 (also happened on 13)
Language
Typescript
Language Version
^4.8.3
Other information
No response
The text was updated successfully, but these errors were encountered: