1 Answer
- Newest
- Most votes
- Most comments
0
After Searching for while I found the Answer from https://repost.aws/knowledge-center/api-gateway-vpc-link-integration
- To retrieve the integration ID, run the AWS CLI command get-integrations similar to the following:
aws apigatewayv2 get-integrations --api-id <api-id>
- Create and save a JSON file named integration.json in the following format:
{ "ApiId": "<api-id>", "IntegrationId": "<integration id retrieved from previous step>", "RequestParameters": { "integration.request.header.ConnectionId": "context.connectionId", //passing context variable connectionId as ConnectionId header to backend "integration.request.header.any-header-key": "''static value'", //passing static value as querystring to backend "integration.request.querystring.any-querystring-key": "'static value'" } }
- To update the integration, run the AWS CLI command update-integration similar to the following:
aws apigatewayv2 update-integration --cli-input-json file://integration.json
- Deploy your API
answered 5 months ago
Relevant content
- asked 2 years ago
- Accepted Answer
- asked a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago