-
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
Enumeration value for HttpMethod must be non-empty (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException #6404
Labels
needs-triage
This issue or PR still needs to be triaged.
Comments
test = rest_api.root.add_resource("test")
test.add_method(
"ANY",
api.Integration(
type=api.IntegrationType.HTTP_PROXY,
integration_http_method="ANY", #A
options=api.IntegrationOptions(
vpc_link=vpc_link,
connection_type=api.ConnectionType.VPC_LINK, #B
),
uri="http://example.org/",
),
) A and B were missing. That seems to solve it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm deploying a REST API on API Gateway accessing a web service on Fargate via a VPC Link and an NLB. And this actually works.
The only missing piece is deploying the method:resource ANY:test/. That part is described in below code snippet:
This causes the error:
Before this erroneous deployment I just deployed the RESt API with ANY test/. No problem. So, I can actually go on API Gateway and manually configure:
https://imgur.com/mpSBm8B
That works. Now what I would like to do is reproduce this with CDK and I think that should be done by adding:
That's what I am doing above but causes the error. Any ideas what I'm doing wrong?
The text was updated successfully, but these errors were encountered: