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 -}