Skip to content

Lb cname #8

Merged
merged 6 commits into from
Oct 17, 2024
Merged

Lb cname #8

merged 6 commits into from
Oct 17, 2024

Conversation

morga471
Copy link
Contributor

As discussed in PR #7, the data items in the upstream module caused issues with planning. We don't need the heritage records from the aws-dns module either....
digging deeper, it seems we haven't been using cname/alias records. They are different than strict cnames -> https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

the aws module docs have a note: Exactly one of records or alias must be specified: this determines whether it's an alias record.
in my 15s of research, every place we have created lb cnames we used a cname record, and the module for cname records isn't using alias.

There is a minor cost savings from this - alias record queries are not charged -> Route 53 doesn't charge for alias queries to AWS resources. For more information, see [Amazon Route 53 Pricing](https://aws.amazon.com/route53/pricing/).

Additional information regarding comparison of alias and cname records -> https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html#resource-record-sets-choosing-alias-non-alias-comparison

Copy link
Contributor

@nangu001 nangu001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

variables.tf Show resolved Hide resolved
@mcgin314
Copy link
Contributor

For what it is worth, in my experience all I've ever done is create the a record.

@morga471 morga471 merged commit 640ece7 into main Oct 17, 2024
@morga471 morga471 deleted the lb_cname branch October 17, 2024 15:46
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants