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
Copy file name to clipboardExpand all lines: README.md
+46-45Lines changed: 46 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
Terraform AWS Route53
8
8
</h1>
9
9
10
-
<palign="center"style="font-size: 1.2rem;">
10
+
<palign="center"style="font-size: 1.2rem;">
11
11
Terraform module to create Route53 resource on AWS for zone and record set.
12
12
</p>
13
13
@@ -38,7 +38,7 @@
38
38
<hr>
39
39
40
40
41
-
We eat, drink, sleep and most importantly love **DevOps**. We are working towards stratergies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
41
+
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
42
42
43
43
This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.
44
44
@@ -49,7 +49,7 @@ We have [*fifty plus terraform modules*][terraform_modules]. A few of them are c
@@ -157,56 +157,57 @@ Here are some examples of how you can use this module in your inventory structur
157
157
158
158
| Name | Description | Type | Default | Required |
159
159
|------|-------------|:----:|:-----:|:-----:|
160
-
| alias | An alias block. Conflicts with ttl & records. Alias record documented below. | list |`<list>`| no |
161
-
| allow_overwrites | Allow creation of this record in Terraform to overwrite an existing record, if any. This does not affect the ability to update the record in Terraform and does not prevent other resources within Terraform or manual Route 53 changes outside Terraform from overwriting this record. false by default. This configuration is not recommended for most environments. | list |`<list>`| no |
162
-
| application | Application (e.g. `cd` or `clouddrove`). | string | `` | no |
163
-
| attributes | Additional attributes (e.g. `1`). | list |`<list>`| no |
164
-
| comment | A comment for the hosted zone. Defaults to 'Managed by Terraform'. | string | `` | no |
165
-
| delegation_set_id | The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with vpc as delegation sets can only be used for public zones. | string | `` | no |
166
-
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string |`-`| no |
167
-
| domain_name | This is the name of the resource. | string | - | yes |
168
-
| enabled | Whether to create Route53 vpc association. | bool |`false`| no |
| failover_enabled | Whether to create Route53 record set. | bool |`false`| no |
171
-
| failover_routing_policies | A block indicating the routing behavior when associated health check fails. Conflicts with any other routing policy. Documented below. | string | `` | no |
172
-
| force_destroy | Whether to destroy all records (possibly managed outside of Terraform) in the zone when destroying the zone. | bool |`true`| no |
173
-
| geolocation_enabled | Whether to create Route53 record set. | bool |`false`| no |
174
-
| geolocation_routing_policies | A block indicating a routing policy based on the geolocation of the requestor. Conflicts with any other routing policy. Documented below. | string | `` | no |
175
-
| health_check_ids | The health check the record should be associated with. | list |`<list>`| no |
176
-
| label_order | Label order, e.g. `name`,`application`. | list |`<list>`| no |
177
-
| latency_enabled | Whether to create Route53 record set. | bool |`false`| no |
178
-
| latency_routing_policies | A block indicating a routing policy based on the latency between the requestor and an AWS region. Conflicts with any other routing policy. Documented below. | string | `` | no |
179
-
| multivalue_answer_routing_policies | Set to true to indicate a multivalue answer routing policy. Conflicts with any other routing policy. | list |`<list>`| no |
180
-
| name | Name (e.g. `app` or `cluster`). | string | `` | no |
160
+
| alias | An alias block. Conflicts with ttl & records. Alias record documented below. | map |`<map>`| no |
161
+
| allow\_overwrites | Allow creation of this record in Terraform to overwrite an existing record, if any. This does not affect the ability to update the record in Terraform and does not prevent other resources within Terraform or manual Route 53 changes outside Terraform from overwriting this record. false by default. This configuration is not recommended for most environments. | list |`<list>`| no |
162
+
| application | Application \(e.g. `cd` or `clouddrove`\). | string |`""`| no |
163
+
| attributes | Additional attributes \(e.g. `1`\). | list |`<list>`| no |
164
+
| comment | A comment for the hosted zone. Defaults to 'Managed by Terraform'. | string |`""`| no |
165
+
| delegation\_set\_id | The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with vpc as delegation sets can only be used for public zones. | string |`""`| no |
166
+
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string |`"-"`| no |
167
+
| domain\_name | This is the name of the resource. | string | n/a | yes |
168
+
| enabled | Whether to create Route53 vpc association. | bool |`"false"`| no |
| failover\_enabled | Whether to create Route53 record set. | bool |`"false"`| no |
171
+
| failover\_routing\_policies | A block indicating the routing behavior when associated health check fails. Conflicts with any other routing policy. Documented below. | string |`""`| no |
172
+
| force\_destroy | Whether to destroy all records \(possibly managed outside of Terraform\) in the zone when destroying the zone. | bool |`"true"`| no |
173
+
| geolocation\_enabled | Whether to create Route53 record set. | bool |`"false"`| no |
174
+
| geolocation\_routing\_policies | A block indicating a routing policy based on the geolocation of the requestor. Conflicts with any other routing policy. Documented below. | string |`""`| no |
175
+
| health\_check\_ids | The health check the record should be associated with. | list |`<list>`| no |
176
+
| label\_order | Label order, e.g. `name`,`application`. | list |`<list>`| no |
177
+
| latency\_enabled | Whether to create Route53 record set. | bool |`"false"`| no |
178
+
| latency\_routing\_policies | A block indicating a routing policy based on the latency between the requestor and an AWS region. Conflicts with any other routing policy. Documented below. | string |`""`| no |
179
+
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string |`"anmol@clouddrove.com"`| no |
180
+
| multivalue\_answer\_routing\_policies | Set to true to indicate a multivalue answer routing policy. Conflicts with any other routing policy. | list |`<list>`| no |
181
+
| name | Name \(e.g. `app` or `cluster`\). | string |`""`| no |
181
182
| names | The name of the record. | list |`<list>`| no |
182
-
|private_enabled| Whether to create private Route53 zone. | bool |`false`| no |
183
-
|public_enabled| Whether to create public Route53 zone. | bool |`false`| no |
184
-
|record_enabled| Whether to create Route53 record set. | bool |`false`| no |
185
-
|record_set_enabled| Whether to create seperate Route53 record set. | bool |`false`| no |
186
-
|secondary_vpc_id| The VPC to associate with the private hosted zone. | string | `` | no |
187
-
|secondary_vpc_region| The VPC's region. Defaults to the region of the AWS provider. | string | `` | no |
188
-
|set_identifiers| Unique identifier to differentiate records with routing policies from one another. Required if using failover, geolocation, latency, or weighted routing policies documented below. | list |`<list>`| no |
| ttls | (Required for non-alias records) The TTL of the record. | list |`<list>`| no |
183
+
|private\_enabled| Whether to create private Route53 zone. | bool |`"false"`| no |
184
+
|public\_enabled| Whether to create public Route53 zone. | bool |`"false"`| no |
185
+
|record\_enabled| Whether to create Route53 record set. | bool |`"false"`| no |
186
+
|record\_set\_enabled| Whether to create seperate Route53 record set. | bool |`"false"`| no |
187
+
|secondary\_vpc\_id| The VPC to associate with the private hosted zone. | string |`""`| no |
188
+
|secondary\_vpc\_region| The VPC's region. Defaults to the region of the AWS provider. | string |`""`| no |
189
+
|set\_identifiers| Unique identifier to differentiate records with routing policies from one another. Required if using failover, geolocation, latency, or weighted routing policies documented below. | list |`<list>`| no |
| ttls |\(Required for non-alias records\) The TTL of the record. | list |`<list>`| no |
191
192
| types | The record type. Valid values are A, AAAA, CAA, CNAME, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. | list |`<list>`| no |
192
-
| values | (Required for non-alias records) A string list of records. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add "" inside the Terraform configuration string (e.g. "first255characters""morecharacters"). | list |`<list>`| no |
193
-
|vpc_id| VPC ID. | string | `` | no |
194
-
|weighted_enabled| Whether to create Route53 record set. | bool |`false`| no |
195
-
|weighted_routing_policies| A block indicating a weighted routing policy. Conflicts with any other routing policy. Documented below. | string | `` | no |
196
-
|zone_id| Zone ID. | string | `` | no |
193
+
| values |\(Required for non-alias records\) A string list of records. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add "" inside the Terraform configuration string \(e.g. "first255characters""morecharacters"\). | list |`<list>`| no |
194
+
|vpc\_id| VPC ID. | string |`""`| no |
195
+
|weighted\_enabled| Whether to create Route53 record set. | bool |`"false"`| no |
196
+
|weighted\_routing\_policies| A block indicating a weighted routing policy. Conflicts with any other routing policy. Documented below. | string |`""`| no |
197
+
|zone\_id| Zone ID. | string |`""`| no |
197
198
198
199
## Outputs
199
200
200
201
| Name | Description |
201
202
|------|-------------|
202
203
| tags | A mapping of tags to assign to the resource. |
203
-
|zone_id| The Hosted Zone ID. This can be referenced by zone records. |
204
+
|zone\_id| The Hosted Zone ID. This can be referenced by zone records. |
204
205
205
206
206
207
207
208
208
209
## Testing
209
-
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
210
+
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
210
211
211
212
You need to run the following command in the testing folder:
212
213
```hcl
@@ -215,7 +216,7 @@ You need to run the following command in the testing folder:
215
216
216
217
217
218
218
-
## Feedback
219
+
## Feedback
219
220
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-route53/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).
220
221
221
222
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-route53)!
@@ -233,4 +234,4 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s
0 commit comments