schlarpc / overengineered-cloudfront-s3-static-website

The objectively correct static website host with S3 + CloudFront
5 stars 0 forks source link

Certificate creation fails with wildcard domain #11

Open schlarpc opened 2 years ago

schlarpc commented 2 years ago

When parameters are set as:

AcmCertificateArn=""
DomainNames="example.com,*.example.com"
HostedZoneId="Z2EXAMPLE"

The creation of the Certificate resource fails with:

[The request contains an invalid set of changes for a resource record set 'CNAME _0a35e76399de154edef6fb4cd9e31827.example.com.'] (Service: AmazonRoute53; Status Code: 400; Error Code: InvalidChangeBatch; Request ID: 6c0f3eaa-bddb-4b52-8570-9b95496fbff4; Proxy: null)