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
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,27 @@ module "ingress" {
176
176
}
177
177
```
178
178
179
+
To create weighted Route 53 aliases, set `alias_weighted_routing`. This applies
180
+
to every alias created by the module instance, and is intended for coordinating
181
+
peer weighted records created from separate Terraform states or applies.
182
+
183
+
```terraform
184
+
module "ingress" {
185
+
source = "..."
186
+
187
+
primary_domain_name = "www.example.com"
188
+
hosted_zone_name = "example.com"
189
+
190
+
alias_weighted_routing = {
191
+
weight = 10
192
+
set_identifier = "primary"
193
+
}
194
+
}
195
+
```
196
+
197
+
For a given Route 53 weighted record set, `set_identifier` must be unique for
198
+
the combination of hosted zone, record name, and record type.
199
+
179
200
<!-- BEGIN_TF_DOCS -->
180
201
## Requirements
181
202
@@ -216,6 +237,7 @@ module "ingress" {
216
237
| <aname="input_alarm_evaluation_minutes"></a> [alarm\_evaluation\_minutes](#input\_alarm\_evaluation\_minutes)| Number of minutes of alarm state until triggering an alarm |`number`|`2`| no |
217
238
| <aname="input_allow_overwrite"></a> [allow\_overwrite](#input\_allow\_overwrite)| Allow overwriting of existing DNS records |`bool`|`false`| no |
218
239
| <aname="input_attach_certificate_domains"></a> [attach\_certificate\_domains](#input\_attach\_certificate\_domains)| Additional existing certificates which should be attached |`list(string)`|`[]`| no |
| <aname="input_certificate_types"></a> [certificate\_types](#input\_certificate\_types)| Types of certificates to look for (default: AMAZON\_ISSUED) |`list(string)`| <pre>[<br> "AMAZON_ISSUED"<br>]</pre> | no |
220
242
| <aname="input_create_domain_aliases"></a> [create\_domain\_aliases](#input\_create\_domain\_aliases)| List of domains for which alias records should be created |`list(string)`| n/a | yes |
221
243
| <aname="input_description"></a> [description](#input\_description)| Human description for this load balancer |`string`| n/a | yes |
|[aws_route53_zone.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone)| data source |
25
26
26
27
## Inputs
@@ -30,6 +31,7 @@ No modules.
30
31
| <aname="input_alb_dns_name"></a> [alb\_dns\_name](#input\_alb\_dns\_name)| DNS name for the ALB for which an alias should be created |`string`| n/a | yes |
31
32
| <aname="input_alb_zone_id"></a> [alb\_zone\_id](#input\_alb\_zone\_id)| Route53 zone for the ALB for which an alias should be created |`string`| n/a | yes |
32
33
| <aname="input_allow_overwrite"></a> [allow\_overwrite](#input\_allow\_overwrite)| Allow overwriting of existing DNS records |`bool`|`false`| no |
34
+
| <aname="input_alias_weighted_routing"></a> [alias\_weighted\_routing](#input\_alias\_weighted\_routing)| Optional weighted routing configuration for the Route 53 alias | <pre>object({<br> weight = number<br> set_identifier = string<br> })</pre> |`null`| no |
33
35
| <aname="input_hosted_zone_name"></a> [hosted\_zone\_name](#input\_hosted\_zone\_name)| Hosted zone for AWS Route53 |`string`|`null`| no |
34
36
| <aname="input_name"></a> [name](#input\_name)| Name of the Route 53 alias (example: www) |`string`| n/a | yes |
0 commit comments