A note on the site distribution - the aliasConfiguration has been deprecated. Instead, use viewerCertificate. it will look something like this:
viewerCertificate: cloudfront.ViewerCertificate.fromAcmCertificate(siteCertificate, { aliases: [WEB_APP_DOMAIN], securityPolicy: cloudfront.SecurityPolicyProtocol.TLS_V1_2_2021, sslMethod: cloudfront.SSLMethod.SNI }),
to do this you also need to make the return value of the siteCertificate not siteCertificateArn but the certificate object itself
siteCertificate
siteCertificateArn
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A note on the site distribution - the aliasConfiguration has been deprecated. Instead, use viewerCertificate. it will look something like this:
to do this you also need to make the return value of the
siteCertificate
notsiteCertificateArn
but the certificate object itself