tobilg / serverless-aws-static-websites

Deploy your static websites without all the hassle on AWS with CloudFront, S3, ACM and Route53 via Serverless
MIT License
142 stars 24 forks source link

Failed to create resource. Certificate not issued in time #3

Closed GaryNg-R closed 4 years ago

GaryNg-R commented 4 years ago

when I first deploy the application, it just come up this error,

SSLCertificate | CREATE_FAILED | Failed to create resource. Certificate not issued in time

i did do the following step in my routh53 to change the NS record

The nameservers you have to configure your domain DNS to can be found under the NS record and will look similar to this:

ns-1807.awsdns-33.co.uk.
ns-977.awsdns-58.net.
ns-1351.awsdns-40.org.
ns-32.awsdns-04.com.
tobilg commented 4 years ago

Are you using a Route53 domain, or an external one, e.g. Namecheap etc.?

GaryNg-R commented 4 years ago

yes, i am using Route53 domain , i try both to change the NS record and not change still fail

tobilg commented 4 years ago

Ok, that means you already have a HostedZone for your Route53 domain I assume. If so, you'd just need to reference the HostedZone via it's ID here:

You can then also comment out https://github.com/tobilg/serverless-aws-static-websites/blob/master/serverless.yml#L42 so that the new HostedZone isn't created.

GaryNg-R commented 4 years ago

i had one before.. .but i thought that block the process and i thought the script will generate a new hosted zone for me so i delete it. let me manually create it back and try again later. Thanks

GaryNg-R commented 4 years ago

i manually add back a hosted zone, and change the HostedZone ID and comment out the HostedZone.yml, then it just throw another error

Error: The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [HostedZone] in the Resources block of the template

then i uncomment that, it just run into the SSLCertificate - Failed to create resource. Certificate not issued in time. error again

tobilg commented 4 years ago

Ah, sorry, you have to comment out the references to the HostedZone resource as well, e.g.

GaryNg-R commented 4 years ago

so i try but look like it has AccessDenied error, so what if i delete the HostedZone, and just want the script created everything for me, what i need to do fix the ssl create issue

Thanks for answering my question

GaryNg-R commented 4 years ago

just want to see if you have any update, I delete everything and try to deploy everything as new but still not working, it fail on SSLCertificate part

GaryNg-R commented 4 years ago

just want to see if you have any update, I delete everything and try to deploy everything as new but still not working, it fail on SSLCertificate part

I find what wrong with that ssl issue...i was update the HostZone ns in the wrong way..i should update my domain ns to match the new hostZone ns .

tobilg commented 4 years ago

Great you got it working!