diff --git a/config/defaults.yml b/config/defaults.yml index a252486..d4b505d 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -1,3 +1,4 @@ --- route53_zone_domain: "test.vkpr.net" -cdn_domain: "s3-teste.test.vkpr.net" \ No newline at end of file +cdn_domain: "s3-teste.test.vkpr.net" +zone_id: "Z00652121QOCYJG0NVLJU" \ No newline at end of file diff --git a/main.tf b/main.tf index 6bb1ea8..d0bfdfe 100644 --- a/main.tf +++ b/main.tf @@ -2,4 +2,5 @@ module "template_s3" { source = "./template_s3" route53_zone_domain = local.config.domain cdn_domain = local.config.cdn + zone_id = local.zone_id } \ No newline at end of file diff --git a/template_s3/input.tf b/template_s3/input.tf index f09b3c1..5e1a4cf 100644 --- a/template_s3/input.tf +++ b/template_s3/input.tf @@ -45,4 +45,8 @@ variable "cloudfront_default_root_object" { variable "cloudfront_http_version" { default = "http2" type = string +} + +variable "id_zone"{ + type = string } \ No newline at end of file