Skip to content
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

variablesResolutionMode: 20210326 - no hosted zone for domain found #54

Open
stankowalik opened this issue Nov 19, 2021 · 2 comments · May be fixed by #58
Open

variablesResolutionMode: 20210326 - no hosted zone for domain found #54

stankowalik opened this issue Nov 19, 2021 · 2 comments · May be fixed by #58

Comments

@stankowalik
Copy link

stankowalik commented Nov 19, 2021

Adding variablesResolutionMode: 20210326 to previously working project breaks new certificate creation. Returned error message:

Serverless: Trying to create certificate for xxxx.xxxx.x.com in us-east-1 ...
Serverless: requested cert: arn:aws:acm:us-east-1:XXXXXXXXXXX:certificate/XXXXX-XXXXX-XXXXX
Serverless: got cert info: arn:aws:acm:us-east-1:XXXXXXXXXXX:certificate/XXXXX-XXXXX-XXXXX - PENDING_VALIDATION
no hosted zone for domain found: certificate validation failed
problem no hosted zone for domain found
no hosted zone for domain found: could not get cert info
problem no hosted zone for domain found
no hosted zone for domain found: could not request cert
problem no hosted zone for domain found
no hosted zone for domain found: could not get certs
problem no hosted zone for domain found

Does anyone know how to fix it or is there some workaround?

@dleesalestreamsoft
Copy link

after debugging this issue I found that the problem is caused by the cache of the variables

you can workaround this by adding this
createCertificate() {
this.initialized = false;
this.initializeVariables();

@stankowalik stankowalik linked a pull request Feb 7, 2022 that will close this issue
@zindont
Copy link

zindont commented Apr 19, 2022

+1 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants