zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.16k stars 357 forks source link

`{"message":"Forbidden"}` when using custom domain #1338

Open ashwanthbalakrishnan5 opened 3 weeks ago

ashwanthbalakrishnan5 commented 3 weeks ago

Unable to deploy my flask api with custom domain.

Context

I deployed my basic flask app using zappa deploy . The url I get after this command is working. When I run zappa certify I get no errors. I don't use Route 53, my domain is in GoDaddy and I already got certificate in ACM.

But this link https://d32unri5k0ytzs.cloudfront.net/ which I found in apigateway -> custom domain is giving {"message":"Forbidden"}

Your Environment

pcolmer commented 1 week ago

@ashwanthbalakrishnan5 Have you gone into API Gateway and, under "custom domain names", added an API mapping for the stage "prod"?