Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a private API Gateway attached to a VPC Endpoint #515

Open
txynidakis opened this issue Sep 1, 2022 · 1 comment
Open

Support for a private API Gateway attached to a VPC Endpoint #515

txynidakis opened this issue Sep 1, 2022 · 1 comment

Comments

@txynidakis
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Feature Request

Is your feature request related to a problem? Please describe.
We have a Private API Gateway attached to a VPC where the API gateway URL is
http://##########-vpce-???????????????????.execute-api.<aws region>.amazonaws.com

From what I understand, the route53 address is linked to the AWS CloudFront Distribution.

Describe the solution you'd like
It would be nice to have an option to link the Route53 address to the VPC Endpoint URL

The configurations for the VPC Endpoint are in serverless.xml

provider:
  ...
  ...
  # AWS API Setting for a private interface
  endpointType: PRIVATE
  vpcEndpointIds:
    - ${self:custom.vpcendpoint.${self:provider.stage}}

Not sure if the npm plugin can read the existing serverless.xml configs and make the appropriate logical decisions or if additional configurations are required under customDomain:

custom:
  customDomain:
    vpcEndpoint: true

If this feature is developed, then from my knowledge, the A record needs to be linked to the API Gateway URL and not a CloudFront Distribution URL.

@txynidakis txynidakis changed the title Support for a private API Gateway attached to a VPC Endpoit Support for a private API Gateway attached to a VPC Endpoint Sep 1, 2022
@alock
Copy link

alock commented Apr 19, 2023

One option could be following https://serverlessland.com/repos/apigw-private-custom-domain-name as an example. Unfortunately the NLB seems to require the static IP addresses of the private API-gateway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants