This script performs the following actions:
- Creates a TLS certificate in ACM
- Upserts a validation CNAME record in Route 53
- Waits for the validation CNAME record to complete/update
- Waits for the certificate to validate and issue
- Outputs a description of the certificate
This obviously assumes that your domain's DNS is hosted on Route 53. It also uses the AWS credentials and region for the environment it is executed in.