Skip to content

Latest commit

 

History

History
113 lines (82 loc) · 5.11 KB

README.md

File metadata and controls

113 lines (82 loc) · 5.11 KB

OPSd

Meet OPSd. The unique and effortless way of managing cloud infrastructure.

terraform-module-aws-route53

Introduction

The module is responsible for managing AWS Route53 (DNS).

Usage

module "manage_route53" {
  source  = "github.com/opsd-io/terraform-module-aws-route53?ref=v0.1.0"

  # Variables
  zone_name = "opsd.example.test"

  a_records = {
    website = {
      name    = "opsd.example.test"
      ttl     = "300"
      records = ["1.2.3.4"]
    }
  }

  cname_records = {
    website = {
      name    = "www"
      ttl     = "300"
      records = ["opsd.example.test"]
    }
  }
}

IMPORTANT: Make sure not to pin to master branch because there may be breaking changes between releases.

Examples

See all the usage examples.

Requirements

Name Version
terraform >= 1.5.5
aws >= 5.17.0

Providers

Name Version
aws >= 5.17.0

Modules

No modules.

Resources

Name Type
aws_route53_record.a resource
aws_route53_record.cname resource
aws_route53_record.mx resource
aws_route53_record.ns resource
aws_route53_record.srv resource
aws_route53_zone.main resource

Inputs

Name Description Type Default Required
a_records Domain A records.
map(object({
name = string
ttl = optional(number, 300)
records = list(string)
}))
{} no
cname_records Domain CNAME records.
map(object({
name = string
ttl = optional(number, 600)
record = string
}))
{} no
mx_records Domain MX records.
map(object({
name = string
ttl = optional(number, 3600)
records = list(string)
}))
{} no
ns_records Domain NS records.
map(object({
name = string
ttl = optional(number, 172800)
records = list(string)
}))
{} no
srv_records Domain SRV records.
map(object({
name = string
ttl = optional(number, 3600)
records = list(string)
}))
{} no
vpc_id VPC in which private domain will be created. string null no
vpc_region AWS Region in which private domain will be created. string null no
zone_name The main domain name. string n/a yes

Outputs

Name Description
a_records Output for A records
cname_records Output for CNAME records
mx_records Output for MX records
name_servers The name servers of the domain zone.
ns_records Output for NS records
srv_records Output for SRV records
zone_arn The ARN of the domain zone.
zone_id The ARN of the domain zone.
zone_name The Name of the domain zone.

Contributing

If you are interested in contributing to the project, see see our guide.

Support

If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.

If you want to discuss something in person, you can join our community on Slack.

License

Apache License 2.0