-
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-apigateway] Invalid integration URI specified with ProxyResource and VPC_LINK #10435
Comments
I've been investigating this and. URI is mandatory for VPC-NLB integration |
Thanks @nzamosenchuk. @muellerk22 - can you try setting the const intergration = new apigV1.Integration({ |
After I enter this I was able to get this working but setting the uri. `
` At a minimum, this should be a required field versus optional. Thanks for the direction. |
When VPC Link is configured as a private integration on a Method, the 'uri' field is required. Without this the CloudFormation deployment fails with the error - 'Invalid integration URI specified'. Instead of switching this to just a synth time error, use the NLB DNS name when available. closes #10435
When VPC Link is configured as a private integration on a Method, the 'uri' field is required. Without this the CloudFormation deployment fails with the error - 'Invalid integration URI specified'. Instead of switching this to just a synth time error, use the NLB DNS name when available. closes #10435
When VPC Link is configured as a private integration on a Method, the 'uri' field is required. Without this the CloudFormation deployment fails with the error - 'Invalid integration URI specified'. Instead of switching this to just a synth time error, use the NLB DNS name when available. closes #10435 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
I was trying to use CDK to recreate this Tutorial:
At a high level: Create a RestApi with a VpcLink Integration. Then add a ProxyResource with a "ANY" method added with addMethod. create a REST API using a private integration to route to a little node app in ECS deployed via Fargate.
Reproduction Steps
`
export class NetworkLoadBalanacerStack extends cdk.Stack {
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
super(scope, id, props);
}
`
What did you expect to happen?
I expected the stack deploy properly with a REST Api routing all REST calls to the service running on ECS through the VPC link.
What actually happened?
The fails to creates and rolls back with a bad URI for the ANY method.
40/45 | 12:55:40 PM | CREATE_FAILED | AWS::ApiGateway::Method | ProxyResource/ANY (ProxyResourceANYD2521206) Invalid integration URI specified (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: abb21875-45ec-46e1-8512-38bcc8536604; Proxy: null) new Method (/Users/kvm/projects/edmunds-sabre/node_modules/@aws-cdk/aws-apigateway/lib/method.js:49:26) \_ ProxyResource.addMethod (/Users/kvm/projects/edmunds-sabre/node_modules/@aws-cdk/aws-apigateway/lib/resource.js:18:16) \_ ProxyResource.addMethod (/Users/kvm/projects/edmunds-sabre/node_modules/@aws-cdk/aws-apigateway/lib/resource.js:238:22) \_ new NetworkLoadBalanacerStack (/Users/kvm/projects/edmunds-sabre/build/nlb-stack.js:59:23) \_ Object.<anonymous> (/Users/kvm/projects/edmunds-sabre/build/index.js:10:1) \_ Module._compile (internal/modules/cjs/loader.js:1075:30) \_ Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10) \_ Module.load (internal/modules/cjs/loader.js:940:32) \_ Function.Module._load (internal/modules/cjs/loader.js:781:14) \_ Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) \_ internal/main/run_main_module.js:17:47 40/45 | 12:55:40 PM | CREATE_FAILED | AWS::ApiGateway::Method | RestApi/Default/ANY (RestApiANYA7C1DC94) Invalid integration URI specified (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: 7d6155d3-8b7e-4a21-871f-338433fc8a48; Proxy: null) new Method (/Users/kvm/projects/edmunds-sabre/node_modules/@aws-cdk/aws-apigateway/lib/method.js:49:26) \_ RootResource.addMethod (/Users/kvm/projects/edmunds-sabre/node_modules/@aws-cdk/aws-apigateway/lib/resource.js:18:16) \_ ProxyResource.addMethod (/Users/kvm/projects/edmunds-sabre/node_modules/@aws-cdk/aws-apigateway/lib/resource.js:235:37) \_ new NetworkLoadBalanacerStack (/Users/kvm/projects/edmunds-sabre/build/nlb-stack.js:59:23) \_ Object.<anonymous> (/Users/kvm/projects/edmunds-sabre/build/index.js:10:1) \_ Module._compile (internal/modules/cjs/loader.js:1075:30) \_ Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10) \_ Module.load (internal/modules/cjs/loader.js:940:32) \_ Function.Module._load (internal/modules/cjs/loader.js:781:14) \_ Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) \_ internal/main/run_main_module.js:17:47
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: