up
up copied to clipboard
Deploy Edge-Optimised, Regional or Private gateway API
Prerequisites
- [x] I am running the latest version. (
up upgrade
) - [x] I searched to see if the issue already exists.
- [x] I inspected the verbose debug output with the
-v, --verbose
flag. - [x] Are you an Up Pro subscriber?
Description
I would like to request the possibility of specifying the endpoint type for the API Gateway; the currently supported values are Regional, Edge-optimised and Private. As far as I can see apex-up creates Edge-Optimised endpoint by default
The documentation for Regional and Private API are here: https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html
I have the use case where I want to create an API Gateway that takes requests from multiple EC2 instances, which are located in the same region, so it makes sense to a Regional API.
Steps to Reproduce
Love Up?
Absolutely loving it! By far the best polished product I have ever seen
First of all thanks :D
As far as regional goes they were missing a CloudFormation setting which made it not possible a month or two ago, but I'll check that out again maybe it's ok now
Sounds like the regional portion still has an issue, I just saw someone in the CloudFormation Slack saying they hit the same limitation, but it should be a quick thing for AWS to add
Hey TJ, Thanks for getting back so fast. That's a shame that Cloudformation is missing that bit of functionality. For the moment I can manually change the Endpoint type from Edge-optimized to Regional via the AWS Console, so it's not really a blocker.
I'd be interested in the private endpoints if this is at all possible.
@tj Support seems to be there now https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html
Could we get this added? I'm stuck on using Up just because I need a regional endpoint without a CloudFront distribution.
It's a little wonky since we need to provision the ACM cert in the region as well, but I'll try to get that in and QA'd soon (moving this week :D)!
- [x] add endpoint config
- [x] add regional cert provisioning
- [x] add config validation
- [ ] document (seems to require re-creation, errors with "Request would rotate edge endpoint certificate, create regional endpoint" otherwise, need to look into that)
- [ ] QA existing apps / edge
- [ ] QA regional