-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
Prerequisites
- I am running the latest version
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
Expected Behavior
Roure53 output zone_id must return zone id instead domain
Current Behavior
Roure53 output zone_id return domain instead zone id
Failure Information (for bugs)
https://github.com/maddevsio/aws-eks-base/blob/main/terraform/layer1-aws/locals.tf
zone_id = var.create_r53_zone ? keys(module.r53_zone.route53_zone_zone_id)[0] : (var.zone_id != null ? var.zone_id : data.aws_route53_zone.main[0].zone_id)
Problem with keys() function https://developer.hashicorp.com/terraform/language/functions/keys
Need to change it to values() https://developer.hashicorp.com/terraform/language/functions/values
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Add there
https://github.com/maddevsio/aws-eks-base/blob/main/terraform/layer1-aws/aws-r53.tf
Output
output "zone-id" {
value = keys(module.r53_zone.route53_zone_zone_id)[0]
}
$ terragrunt apply -target module.r53_zone
Changes to Outputs:
~ zone-id = {
- "myexample.com" = "Z0057624U50GYR1MFNVM"
} -> "myexample.com"
eli007s
Metadata
Metadata
Assignees
Labels
No labels