You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this project will be documented in this file.
4
+
5
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Added unique id's to allow multiple uses within the same account ([#17](https://github.com/meltwater/terraform-aws-asg-dns-handler/pull/17)[@seanturner83](https://github.com/seanturner83))
42
+
43
+
### Changed
44
+
45
+
- Updated testing scenarios for latest aws provider ([#20](https://github.com/meltwater/terraform-aws-asg-dns-handler/pull/20)[@hikerspath](https://github.com/hikerspath))
# ASG DNS Handler | [](https://cloud.drone.io/meltwater/terraform-aws-asg-dns-handler)
2
2
3
-
# ASG DNS handler
3
+
> **DEPRECATED**:
4
+
> While minimally supported for hotfixes, this branch supporting Terraform v0.11 has been deprecated. Please update to v2.0.0 of this module or greater to be able to make use of all the modules latest features.
4
5
5
-
## Deprecated
6
-
This branch supporting Terraform v0.11 has been deprecated. Please update to v2.0.0 of this module or greater.
6
+
This Terraform module sets up everything necessary for dynamically setting hostnames following a certain pattern on instances spawned by AWS Auto Scaling Groups (ASGs).
7
7
8
-
## Purpose
9
-
This module sets up everything necessary for dynamically setting hostnames following a certain pattern on instances spawned by Auto Scaling Groups
8
+
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/).
9
+
10
+
## Maintainers
11
+
12
+
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.
13
+
14
+
## Requirements
15
+
16
+
-[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
17
+
-[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
18
+
19
+
## How do I use it?
10
20
11
-
## Usage
12
21
Create an ASG and set the `asg:hostname_pattern` tag for example like this:
13
22
14
23
```
@@ -28,7 +37,8 @@ tag {
28
37
Once you have your ASG set up, you can just invoke this module and point it to it:
Please read through the [CONTRIBUTING.md](https://github.com/meltwater/terraform-aws-asg-dns-handler/blob/master/CHANGELOG.md) to understand how to submit pull requests to us and be sure to visit our [Code of Conduct](https://github.com/meltwater/terraform-aws-asg-dns-handler/blob/master/CODE_OF_CONDUCT.md).
131
+
121
132
## Difference between Lifecycle action
122
133
Lifecycle_hook can have `CONTINUE` or `ABANDON` as default_result. By setting default_result to `ABANDON` will terminate the instance if the lambda function fails to update the DNS record as required. `Complete_lifecycle_action` in lambda function returns `LifecycleActionResult` as `CONTINUE` on success to Lifecycle_hook. But if lambda function fails, Lifecycle_hook doesn't get any response from `Complete_lifecycle_action` which results in timeout and terminates the instance.
123
134
@@ -126,6 +137,6 @@ If the instance is launching, CONTINUE indicates that your actions were successf
126
137
127
138
If the instance is terminating, both ABANDON and CONTINUE allow the instance to terminate. However, ABANDON stops any remaining actions, such as other lifecycle hooks, while CONTINUE allows any other lifecycle hooks to complete.
128
139
129
-
## TODO
140
+
## License and Copyright
130
141
131
-
- Reverse lookup records?
142
+
This project was built at Meltwater. It is licensed under the [Apache License 2.0](LICENSE).
0 commit comments