-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 mappings not generated for custom domain #565
Comments
Can you be more specific about what the problem is? |
API Mappings under API gateway custom domain do not get generated at all, resulting in forbidden results when trying to use the service via the custom domain. |
A bit more detail, now the stack thinks it is still deployed, however no resources of it exist after the last deploy. First undeploy succeeded, I didn't retain the logs, after that this happens, perhaps boto caching? : Calling undeploy for environment dev.. |
I've also run into this issue and my workaround has been to manually create a base path mapping in the AWS console every time I deploy. Is this because the base path mapping is only created when Can we create the base path mapping during deployment if the custom domain name has already been added to API Gateway? |
We have the same challenge. We'd like to be able to deploy with an endpoint that looks something like https://api.example.io/stage_name/service_name/version_number or https://api.example.io/dev/register/v1 |
Honestly Zappa really isn't intended to be used that way - you should do https://dev.example.io/register/ and https://prod.example.io/register/ , etc. Unless there's something I'm missing here. |
I just spent some time wondering why my thing wasn't working and I think it's the same issue. |
I think a workaround for this is changing https://github.com/Miserlou/Zappa/blob/master/zappa/wsgi.py#L75 to
However I'm not sure enough this will work in all cases to put in a PR. Thoughts? |
#1543 might fix some of the problems in this issue |
So we have a similar problem that maybe someone can help us resolve. We want to be able to use a custom domain that persists after redeploying in order to avoid having to manually update the domain wherever it's in use. Everything works fine if we start from scratch by running We can then point our CNAME custom.domain.tld to somerandomstring.cloudfront.net and voilá the world is a beautiful place. Is there way to solve this? |
I am having issues with the API mappings for a custom domain, it appears that it is not generating them after a undeploy / deploy cycle.
I haven't dug too deeply into the details as I am a relatively new user, here is the configuration, I will update if I dig more.
{
"dev": {
"app_function": "example.app",
"s3_bucket": "zappa-example",
"lets_encrypt_key": "s3://zappa-example/account.key",
"domain": "api.example.io",
"timeout_seconds": 120,
"delete_local_zip": false,
"lets_encrypt_expression": "rate(15 days)",
"remote_env": "s3://zappa-example/secret-config.json"
}
}
The text was updated successfully, but these errors were encountered: