brunoxd13 / terraform-aws-module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Route53 Module

This module creates and manage Route53 Zones and Recods

Example

module "route53" {
  source = "../"

  zone = {
    name    = "brl-tech-test.com"
    comment = "Gerenciado pelo mod. terraform"
    # delegation_set_id = ""
    # vpc = {
    #   id     = ""
    #   region = ""
    # }
  }

  records = [
    {
      name    = "test"
      type    = "CNAME"
      ttl     = 3600
      records = ["brl-tech-test.com"]
    }
  ]

  tags = {
    evironment = "dev"
  }
}

Inputs

Name Description Type Default Required
records List of Route53 records to be created any n/a yes
tags Map of resource tags map(any) n/a yes
zone Map of Route53 Zone parameters
object({
name = string
comment = optional(string)
delegation_set_id = optional(string)
vpc = optional(object({
id = string
region = optional(string)
}))
})
n/a yes

Outputs

Name Description
name_servers The Route53 zone NS
recrods The Route53 zone records
zone_id The Route53 zone ID

Example

module "route53" {
  source = "../"

  zone = {
    name    = "brl-tech-test.com"
    comment = "Gerenciado pelo mod. terraform"
    # delegation_set_id = ""
    # vpc = {
    #   id     = ""
    #   region = ""
    # }
  }

  records = [
    {
      name    = "test"
      type    = "CNAME"
      ttl     = 3600
      records = ["brl-tech-test.com"]
    }
  ]

  tags = {
    evironment = "dev"
  }
}

Inputs

Name Description Type Default Required
records List of Route53 records to be created any n/a yes
tags Map of resource tags map(any) n/a yes
zone Map of Route53 Zone parameters
object({
name = string
comment = optional(string)
delegation_set_id = optional(string)
vpc = optional(object({
id = string
region = optional(string)
}))
})
n/a yes

Outputs

Name Description
name_servers The Route53 zone NS
recrods The Route53 zone records
zone_id The Route53 zone ID

About


Languages

Language:HCL 100.0%