Coder Social home page Coder Social logo

wesleung / terraform-aws-route53-alias Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devops-workflow/terraform-aws-route53-alias

0.0 0.0 0.0 15 KB

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

Home Page: https://registry.terraform.io/modules/devops-workflow/route53-alias/aws/

License: Apache License 2.0

Makefile 10.35% HCL 89.65%

terraform-aws-route53-alias's Introduction

CircleCI

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.

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  = "${aws_elb.example.zone_id}"
}

Variables

Name Default Description Required
aliases [] List of aliases Yes
parent_zone_id `` ID of the hosted zone to contain this record (or specify parent_zone_name) Yes
parent_zone_name `` Name of the hosted zone to contain this record (or specify parent_zone_id) Yes
target_dns_name `` DNS-name of target resource (e.g. ALB,ELB) Yes
target_zone_id `` ID of target resource (e.g. ALB,ELB) Yes
enabled true Set to false to prevent the module from creating anything No
evaluate_target_health false Set to true if you want Route 53 to determine whether to respond to DNS queries No

Outputs

Name Description
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

License

Apache 2 License. See LICENSE for full details.

terraform-aws-route53-alias's People

Contributors

aknysh avatar dependabot-preview[bot] avatar goruha avatar osterman avatar snemetz avatar sweetops avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.