Chalice did not configure vpc endpoint correctly for private API
See original GitHub issueI’m trying to create a private api while specifying the VPC endpoint. It created the private API but I do not see the vpce configuration when I try to verify it via AWS CLI and console
cli output:
{
"id": "xxxxx",
"name": "app",
"createdDate": 1591091485,
"version": "1.0",
"apiKeySource": "HEADER",
"endpointConfiguration": {
"types": [
"PRIVATE"
]
},
"tags": {}
}
config.json
"stages": {
"dev": {
"api_gateway_stage": "api",
"api_gateway_endpoint_type": "PRIVATE",
"api_gateway_endpoint_vpce": ["vpce-xxxxxx"],
"autogen_policy": false,
}
},
"version": "2.0",
"app_name": "app"
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Resolve connection issues with API Gateway private API ...
I'm having issues connecting to my Amazon API Gateway private API endpoint that's in Amazon Virtual Private Cloud (Amazon VPC). How do I ......
Read more >Configuration File — AWS Chalice
When configuring a Private API a VPC Endpoint id must be specified to configure a default resource policy on the API if an...
Read more >AWS: Always Getting `"message": "Forbidden"` from API ...
We're not invoking a private API from within an Amazon VPC. We did not disable the default endpoint and are instead using the...
Read more >How to Create CRUD REST API with AWS Chalice - Auth0
This will allow you to use the Amazon API Gateway and AWS Lambda. If you installed AWS CLI successfully, then you can use...
Read more >Python Serverless Microframework for AWS - Read the Docs
The chalice local command does not assume the role associated with your lambda ... When configuring a Private API a VPC Endpoint id...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This same is happening to me, I added the vpc endpoint configuracion in my config.json but when the app is deployed in API Gateway settings the vpce is not set, I have to add it manually or with the following command:
aws apigateway update-rest-api \ --rest-api-id u67n3ov968 \ --patch-operations "op='add',path='/endpointConfiguration/vpcEndpointIds',value='vpce-01d622316a7df47f9'" --region us-west-2
(https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html#associate-private-api-with-vpc-endpoint)
Hi! Is the functionality to automatically set the VPC Endpoint, like @choonming expected, available somewhere in the Chalice? I seems that the requirements that are put on me - require this setting.