-
Notifications
You must be signed in to change notification settings - Fork 232
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api Gateway V2 (httpApi) not working with non-Route53 domain. #517
Comments
I have the same setup using cloudflare, but I'm getting an error
Heres my configuration:
The stack for the service exists, so unsure what could be the issue here. Could it be the certificate name with the wildcard? |
I also encountered a similar error: (Tried the latest version, same error)
Heres my configuration:
@rddimon |
Same issue with my configuration:
Output
Versions
And upon navigating to the domain, it does not resolve. |
I solved removing the domain with
and then doing the deploy. |
Community Note
Bug Report
I am unable to receive a Cloudfront distribution link through the process of running
sls create_domain
andsls deploy
.I am attempting to deploy an Api Gateway V2, as in an http api. From my reading, it appears I can only do this with regional endpoint types, since edge-optimized are not supported. I created my certificate in the correct region, and validated successfully through DNS validation. I am NOT using Route53, but instead using Cloudflare. As such, I have set createRoute53Record to false.
Command Run
sls create_domain --verbose
sls deploy
Console Output
meaningful output from
sls deploy
Notice the target domain is just to my api gateway, instead of a cloudfront distribution.
Domain Manager Configuration
Versions
Possible Solution
When I remove all of my http lambdas and instead deploy as a REST api (api gateway v1), as well as recreate my certificate in us-east-1 for an edge-optimized endpoint, and update my config to remove any mention of the apiType or endpointType, I can create the domain as well as deploy and I receive a Cloudfront distribution link no problem. I just don't know why it won't work with httpApi.
Thanks for any help in advance!
The text was updated successfully, but these errors were encountered: