https://pulumi.com logo
#aws
Title
# aws
h

helpful-easter-62786

06/19/2023, 2:57 PM
Does anyone have a complete working example of creating a an aws registered domain, with waiting for its creation, then making a certificate request and again waiting for its creation and then finally creating the appropriate CNAME record in the hosted zone that’s a side effect of the registered domain?
l

little-cartoon-10569

06/19/2023, 9:37 PM
You don't wait in your code. In fact, you can't wait in your code, since your code finishes before any resources are created. The various validation resources do the waiting for you. This one for certificates: https://www.pulumi.com/registry/packages/aws/api-docs/acm/certificatevalidation/
You don't need to wait for Route53 records at all. That's already done within the Route53 resources.