From 4d4bedd51e9c9389188e6e16406e8e0268d3ae12 Mon Sep 17 00:00:00 2001 From: Eugenio Sales Date: Sun, 16 Oct 2022 00:51:20 -0300 Subject: [PATCH] feature #4 - update zone host --- terraform/main.tf | 10 ++++++++++ terraform/variables.tf | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 144e858..e437746 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -23,3 +23,13 @@ terraform { provider "aws" { region = "us-east-1" } + +variable "route53_zone_host" { + type = string + description = "Route53 Zone Host" +} + +data "aws_route53_zone" "selected" { + name = var.route53_zone_host + private_zone = true +} diff --git a/terraform/variables.tf b/terraform/variables.tf index f7cfdfe..849d01e 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -30,13 +30,3 @@ variable "aws_profile" { description = "AWS Profile" default = null } - -variable "route53_zone_host" { - type = string - description = "Route53 Zone Host" -} - -data "aws_route53_zone" "selected" { - name = var.route53_zone_host - private_zone = true -}