From 58ed4c2473297e5fd90b431ecb86da4b7cff858d Mon Sep 17 00:00:00 2001 From: etwillbefine Date: Tue, 15 Sep 2020 13:21:21 +0200 Subject: [PATCH] update dns module and use force_destroy can still be redeployed when needed --- dns.tf | 3 ++- outputs.tf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dns.tf b/dns.tf index 7e573fb..55a06fb 100644 --- a/dns.tf +++ b/dns.tf @@ -4,13 +4,14 @@ locals { } module "zone" { - source = "git::https://github.com/goci-io/aws-route53-zone.git?ref=tags/0.5.2" + source = "git::https://github.com/goci-io/aws-route53-zone.git?ref=tags/0.6.0" namespace = var.namespace stage = var.stage attributes = [var.region] domain_name = var.domain_name parent_domain_name = local.parent_domain certificate_enabled = false + force_destroy = true } module "external_dns" { diff --git a/outputs.tf b/outputs.tf index f082d2f..ec440e2 100644 --- a/outputs.tf +++ b/outputs.tf @@ -3,7 +3,7 @@ output "issuer_name" { } output "domain_name" { - value = var.domain_name + value = module.zone.domain_name } output "hosted_zone_id" {