route53-alias

devops-workflow/route53-alias/aws

Terraform Module HCL AWS

Terraform Module to Define Vanity Host/Domain (e.g. brand.com) as an ALIAS record

Install
module "route53-alias" {
source = "devops-workflow/route53-alias/aws"
version = "0.2.4"
}
plain text: /constructs/tfmod-devops-workflow-route53-alias-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

![CircleCI](https://circleci.com/gh/devops-workflow/terraform-aws-route53-alias) terraform-aws-route53-alias Terraform module that implements "vanity" host names (e.g. brand.com) as ALIAS records to another Route53 DNS resource record (e.g. ELB/ALB, S3 Bucket Endpoint or CloudFront Distribution). Unlike CNAME records, the synthetic ALIAS record works with zone apexes. Usage This will define a A resource record for www.example.com as an alias of the aws_elb.example.dns_name. ``terraform module "production_www" { source = "git::https://github.com/devops-workflow/terraform-aws-route53-alias.git?ref=master" aliases = ["www.example.com.", "static1.cdn.example.com.", "static2.cdn.example.com"] parent_zone_id = "${var.parent_zone_id}" target_dns_name = "${aws_elb.example.dns_name}" target_zone_id

Inputs (7)
NameTypeDescriptionDefault
aliasesanyList of aliases required
target_dns_nameanyDNS-name of target resource (e.g. ALB,ELB) required
target_zone_idanyID of target resource (e.g. ALB,ELB) required
enabledanySet to false to prevent the module from creating anythingtrue
evaluate_target_healthanySet to true if you want Route 53 to determine whether to respond to DNS queries"false"
parent_zone_idanyID of the hosted zone to contain this record (or specify parent_zone_name)""
parent_zone_nameanyName of the hosted zone to contain this record (or specify parent_zone_id)""
Outputs (3)
hostnames — List of DNS-records
parent_zone_id — ID of the hosted zone to contain this record
parent_zone_name — Name of the hosted zone to contain this record
Resources (1)
aws_route53_record
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.4
Cloud AWS
★ Stars0
Forks4
Total downloads26.3k
Inputs7
Outputs3
Resources1
LicenseApache-2.0
Namespacedevops-workflow
Updated