Open joeduffy opened 5 years ago
Hello,
If I use this kind of stuff with domain, ssl , cert validation stuff ... It takes much more time for deployments: For example: (correct me if I'm wrong) First time , we have approximately 10 minutes. If we have domain external domain provider, we should do manual step to setup NS record on the domain provider map to hosted zone NS records. And it takes much more time, before domain dns propagated. Sometimes script can throw timeout error.
All next times, I see next items after pulumi up :
- ├─ aws:acm:CertificateValidation certificateValidation delete
- ├─ aws:route53:Record domainName-validation delete
- ├─ aws:acm:Certificate certificate delete
- └─ pulumi:providers:aws east delete
Every time, script try to delete this items, and simple updates takes about 5, 10 minutes. Why script try delete it every time?
I use this exmaple https://github.com/pulumi/examples/tree/master/aws-ts-static-website
But with some changes: cointainer app , Fargate service .
After quite a bit of spelunking, I figured out how to assign a custom domain name, with SSL support, for an
awsx.apigateway.API
. This is nice because it not only gives me a custom domain over HTTPS, but also eliminates the ugly trailing/stage
part of the URL.It was not easy although in hindsight all of the pieces make perfect sense:
I honestly just wanted to write something like this:
However, I realize why papering over too many details -- including SSL certificate creation, domain creation, and so on -- is dangerous. It could be that we simply need a blog and example for this. But I do think it's worth pondering what we could/should do here.