Skip to content

brunoxd13/terraform-aws-module

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages