zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.35k stars 362 forks source link

Zappa certify successful but the cloudfront given says {403: Forbidden} #1357

Closed rafmacalaba closed 1 week ago

rafmacalaba commented 1 week ago

Zappa certify works

zappa certify
Calling certify for stage dev..
Are you sure you want to certify? [y/n] y
Certifying domain premiumstayph.com..
Created a new domain name with supplied certificate. Please note that it can take up to 40 minutes for this domain to be created and propagated through AWS, but it requires no further work on your part.
Certificate updated!

Context

I read the issues about certify 403 forbidden errors and it leads me to the api mappings under api-gateway/custom domain names and zappa certify already did that for me.

But still when I look into the cloudfront given by the API it is 403 forbidden error.

Python 3.12 with virtual environment

Expected Behavior

cloudfront example2323.cloudfront.net should work

Actual Behavior

example2323.cloudfront.ne 403 : forbidden error

Possible Fix

Steps to Reproduce

  1. domain from godaddy
  2. request and verify certificate to ACM (created in us-east-1 / N virginia).
  3. add "route53_enabled" : false, certificate_arn, domain in zappa_settings.json
  4. zappa certify -> OK RUN WITHOUT ERRORS

    Your Environment

    • Zappa version used: 0.59.0
    • Operating System and Python version: Windows
    • The output of pip freeze:
    • Link to your project (optional):
    • Your zappa_settings.json: "route53_enabled" : false, certificate_arn, domain in zappa_settings.json
rafmacalaba commented 1 week ago

Forgot to give my nameservers in godaddy and use route_53. closing this.