route53-alias

cloudposse/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 = "cloudposse/route53-alias/aws"
version = "0.13.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-route53-alias ![Latest Release](https://github.com/cloudposse/terraform-aws-route53-alias/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) 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. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% O

Inputs (27)
NameTypeDescriptionDefault
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' required
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will required
target_zone_idstringID of target resource (e.g. ALB, ELB) required
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indi required
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi required
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by required
target_dns_namestringDNS name of target resource (e.g. ALB, ELB) required
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` required
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["na required
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length. required
enabledboolSet to false to prevent the module from creating any resources required
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu required
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tag required
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st required
aliaseslist(string)List of aliases required
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
parent_zone_idstringID of the hosted zone to contain this record (or specify `parent_zone_name`)""
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
parent_zone_namestringName of the hosted zone to contain this record (or specify `parent_zone_id`)""
ipv6_enabledboolSet to true to enable an AAAA DNS record to be set as well as the A recordfalse
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
evaluate_target_healthboolSet to true if you want Route 53 to determine whether to respond to DNS queriesfalse
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
allow_overwriteboolAllow creation of this record in Terraform to overwrite an existing record, if afalse
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
private_zoneboolIs this a private hosted zone?false
Outputs (3)
parent_zone_name — Name of the hosted zone to contain the records
hostnames — List of DNS records
parent_zone_id — ID of the hosted zone to contain the records
Resources (1)
aws_route53_record
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.0
Cloud AWS
★ Stars56
Forks58
Total downloads7.6M
Inputs27
Outputs3
Resources1
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated