Open ashwanthbalakrishnan5 opened 3 weeks ago
Unable to deploy my flask api with custom domain.
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.
zappa deploy
zappa certify
But this link https://d32unri5k0ytzs.cloudfront.net/ which I found in apigateway -> custom domain is giving {"message":"Forbidden"}
{"message":"Forbidden"}
zappa_settings.json
{ "prod": { "app_function": "app.app", "exclude": [ "boto3", "dateutil", "botocore", "s3transfer", "concurrent" ], "aws_region": "ap-south-1", "profile_name": null, "project_name": "api-dispatcher", "runtime": "python3.11", "s3_bucket": "api-dispatcher", "domain": "api-dispatcher.gameup.app", "certificate_arn":"arn:aws:acm:us-east-1:<ACCOUNT-ID>:certificate/<ID>", "route53_enabled" : false } }
@ashwanthbalakrishnan5 Have you gone into API Gateway and, under "custom domain names", added an API mapping for the stage "prod"?
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 runzappa 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
zappa_settings.json
: