DerploidEntertainment / Website

Infrastructure as Code and GitHub Pages sources for the Derploid website
https://www.derploid.com/
MIT License
2 stars 0 forks source link

Use HostedZone.fromLookup to define HostedZone instances #46

Closed Rabadash8820 closed 2 years ago

Rabadash8820 commented 2 years ago

Looking at the CDK HostedZone's factory methods, the fromLookup method only requires a domainName, while fromHostedZoneAttributes, for some reason, requires both zone name and zone ID. Thus, if we use the former method, we don't have to mess with "injecting" a secret hosted zone ID and keeping it out of version control. Much simpler.