Skip to main content

Module: route53-cluster-hostname

Terraform module to define a consistent AWS Route53 hostname

Usage

For a complete example, see examples/complete.

For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test.

# Create a standard label resource. See [null-label](https://github.com/cloudposse/terraform-null-label/#terraform-null-label--)
module "label" {
source = "cloudposse/label/null"
# Cloud Posse recommends pinning every module to a specific version, though usually you want to use the current one
# version = "x.x.x"

namespace = "eg"
name = "example"
}

module "route53_hostname" {
source = "cloudposse/route53-cluster-hostname/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"

zone_id = "Z3SO0TKDDQ0RGG"
type = "CNAME"

records = [
"test-hostname",
]

context = module.label.context
}