question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chalice did not configure vpc endpoint correctly for private API

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
QiqeMtzcommented, Sep 15, 2020

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)

0reactions
mt3ocommented, Sep 15, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found