|
1 |
| -[](https://cloud.drone.io/meltwater/terraform-aws-asg-dns-handler) |
2 |
| - |
3 |
| -# ASG DNS handler |
4 |
| - |
5 |
| -## Purpose |
| 1 | +# ASG DNS handler | [](https://cloud.drone.io/meltwater/terraform-aws-asg-dns-handler) |
6 | 2 |
|
7 | 3 | This Terraform module sets up everything necessary for dynamically setting hostnames following a certain pattern on instances spawned by AWS Auto Scaling Groups (ASGs).
|
8 | 4 |
|
9 | 5 | Learn more about our motivation to build this module in our blog post [Dynamic Route53 records for AWS Auto Scaling Groups with Terraform](https://underthehood.meltwater.com/blog/2020/02/07/dynamic-route53-records-for-aws-auto-scaling-groups-with-terraform/).
|
10 | 6 |
|
| 7 | +## Maintainers |
| 8 | + |
| 9 | +This repository and the module it houses are maintained Foundation Missions A-Team. Should you encounter issues or require changes to code maintained in this repository, please reachout through an issue that is part of this project. |
| 10 | + |
11 | 11 | ## Requirements
|
12 | 12 |
|
13 |
| -- [Terraform](https://www.terraform.io/downloads.html) 0.12+ |
14 |
| -- [Terraform AWS provider](https://github.com/terraform-providers/terraform-provider-aws) 2.0+ |
| 13 | +- [Terraform](https://www.terraform.io/downloads.html) 0.12+ and [Terraform AWS provider](https://github.com/terraform-providers/terraform-provider-aws) 2.0+ use v2+ releases |
| 14 | +- [Terraform](https://www.terraform.io/downloads.html) 0.11 and below, [Terraform AWS provider](https://github.com/terraform-providers/terraform-provider-aws) 2.0.14 and below use v1.x releases |
15 | 15 |
|
16 |
| -## Usage |
| 16 | +## How do I use it? |
17 | 17 |
|
18 | 18 | Create an ASG and set the `asg:hostname_pattern` tag for example like this:
|
19 | 19 |
|
|
36 | 36 | Once you have your ASG set up, you can just invoke this module and point to it:
|
37 | 37 | ```hcl
|
38 | 38 | module "clever_name_autoscale_dns" {
|
39 |
| - source = registry.terraform.io/modules/meltwater/asg-dns-handler/aws/latest" |
40 |
| - version = "2.1.6" |
| 39 | + source = meltwater/asg-dns-handler/aws" |
| 40 | + version = "~> 2.0" |
| 41 | + |
41 | 42 | # use_public_ip = true
|
42 | 43 | autoscale_handler_unique_identifier = "clever_name"
|
43 | 44 | autoscale_route53zone_arn = "ABCDEFGHIJ123"
|
@@ -113,16 +114,16 @@ resource "aws_autoscaling_group" "my_asg" {
|
113 | 114 | }
|
114 | 115 |
|
115 | 116 | module "autoscale_dns" {
|
116 |
| - source = registry.terraform.io/modules/meltwater/asg-dns-handler/aws/latest" |
117 |
| - version = "2.1.6" |
| 117 | + source = "meltwater/asg-dns-handler/aws" |
| 118 | + version = "2.1.7" |
118 | 119 |
|
119 | 120 | autoscale_handler_unique_identifier = "my_asg_handler"
|
120 | 121 | autoscale_route53zone_arn = var.internal_zone_id
|
121 | 122 | vpc_name = var.vpc_name
|
122 | 123 | }
|
123 | 124 | ```
|
124 | 125 |
|
125 |
| -## Contributing |
| 126 | +## Developers Guide / Contributing |
126 | 127 |
|
127 | 128 | Please read [CONTRIBUTING.md](CONTRIBUTING.md) to understand how to submit pull requests to us, and also see our [Code of Conduct](CODE_OF_CONDUCT.md).
|
128 | 129 |
|
|
0 commit comments