Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Allow management of ACM certs with SANs in multiple zones (#61)" #66

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

nitrocode
Copy link
Member

@nitrocode nitrocode commented Mar 3, 2023

Note: Workaround for now is to use 0.16.3

what

why

  • Users experience issues when the module tries to guess the zones. If multiple subdomain levels of SANs are used, the module logic will attempt to guess the zones.
  • One option for users is to be explicit about the zone_id / zone_name which should be able to be overridden resulting in the the data source aws_route53_zone continuing to be created per unique domain but resolving to the zone* passed in.

references

@nitrocode nitrocode requested review from a team as code owners March 3, 2023 13:22
@Nuru Nuru added the no-release Do not create a new release (wait for additional code changes) label Feb 27, 2024
domain => length(split(".", domain)) > 2 ? join(".", slice(split(".", domain), 1, length(split(".", domain)))) : domain
}
unique_zones = distinct(values(local.domain_to_zone))
private_enabled = ! local.public_enabled

Choose a reason for hiding this comment

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

[terraform fmt -recursive] reported by reviewdog 🐶

Suggested change
private_enabled = ! local.public_enabled
private_enabled = !local.public_enabled

@@ -51,7 +42,7 @@ resource "aws_route53_record" "default" {
type = dvo.resource_record_type
}
}
zone_id = data.aws_route53_zone.default[local.domain_to_zone[each.key]].id
zone_id = join("", data.aws_route53_zone.default.*.zone_id)

Choose a reason for hiding this comment

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

⚠️ [tflint] reported by reviewdog 🐶
List items should be accessed using square brackets

@Nuru Nuru merged commit 1411d06 into main Feb 27, 2024
6 of 9 checks passed
@Nuru Nuru deleted the revert-back-to-0.16.2 branch February 27, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-release Do not create a new release (wait for additional code changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants