Skip to content

ChallengerAccept/module-terraform-route53-records

 
 

Repository files navigation

terraform-aws-route53-cluster-hostname

Terraform module to define a consistent AWS Route53 hostname


Requirements

Name Version
terraform >= 0.12.0
aws >= 2.0
local >= 1.2

Providers

Name Version
aws >= 2.0

Inputs

Name Description Type Default Required
additional_tag_map Additional tags for appending to tags_as_list_of_maps. Not added to tags. map(string) {} no
attributes Additional attributes (e.g. 1) list(string) [] no
context Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as null to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional_tag_map, which are merged.
object({
enabled = bool
namespace = string
environment = string
stage = string
name = string
delimiter = string
attributes = list(string)
tags = map(string)
additional_tag_map = map(string)
regex_replace_chars = string
label_order = list(string)
id_length_limit = number
})
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_order": [],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {}
}
no
delimiter Delimiter to be used between namespace, environment, stage, name and attributes.
Defaults to - (hyphen). Set to "" to use no delimiter at all.
string null no
dns_name The name of the DNS record string "" no
enabled Set to false to prevent the module from creating any resources bool null no
environment Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' string null no
id_length_limit Limit id to this many characters.
Set to 0 for unlimited length.
Set to null for default, which is 0.
Does not affect id_full.
number null no
label_order The naming order of the id output and Name tag.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 5 elements, but at least one must be present.
list(string) null no
name Solution name, e.g. 'app' or 'jenkins' string null no
namespace Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' string null no
records DNS records to create list(string) n/a yes
regex_replace_chars Regex to replace chars with empty string in namespace, environment, stage and name.
If not set, "/[^a-zA-Z0-9-]/" is used to remove all characters other than hyphens, letters and digits.
string null no
stage Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' string null no
tags Additional tags (e.g. map('BusinessUnit','XYZ') map(string) {} no
ttl The TTL of the record to add to the DNS zone to complete certificate validation number 300 no
type Type of DNS records to create string "CNAME" no
zone_id Route53 DNS Zone ID string n/a yes
squad Squad, e.g. 'infracore', 'p2p', 'card', for more check squad list string null yes
bu bu, e.g. The default value is 'picpay' string picpay no
costcenter costcenter, A number for the cost center, check cost center list string null yes
tribe tribe, A tribe name, check tribe name list list string null yes
terraform to know if the resource was created with terraform string true no

Outputs

Name Description
hostname DNS hostname

About

Terraform module to define a consistent AWS Route53 hostname

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%