File tree Expand file tree Collapse file tree 12 files changed +63
-16
lines changed Expand file tree Collapse file tree 12 files changed +63
-16
lines changed Original file line number Diff line number Diff line change @@ -352,13 +352,13 @@ See [patterns.md](https://github.com/terraform-aws-modules/terraform-aws-alb/blo
352
352
| Name | Version |
353
353
| ------| ---------|
354
354
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
355
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.46 |
355
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.59 |
356
356
357
357
## Providers
358
358
359
359
| Name | Version |
360
360
| ------| ---------|
361
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.46 |
361
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.59 |
362
362
363
363
## Modules
364
364
Original file line number Diff line number Diff line change @@ -20,15 +20,17 @@ Note that this example may create resources which cost money. Run `terraform des
20
20
| Name | Version |
21
21
| ------| ---------|
22
22
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
23
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.46 |
23
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.59 |
24
24
| <a name =" requirement_null " ></a > [ null] ( #requirement\_ null ) | >= 2.0 |
25
+ | <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | >= 3.6 |
25
26
26
27
## Providers
27
28
28
29
| Name | Version |
29
30
| ------| ---------|
30
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.46 |
31
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.59 |
31
32
| <a name =" provider_null " ></a > [ null] ( #provider\_ null ) | >= 2.0 |
33
+ | <a name =" provider_random " ></a > [ random] ( #provider\_ random ) | >= 3.6 |
32
34
33
35
## Modules
34
36
@@ -53,6 +55,7 @@ Note that this example may create resources which cost money. Run `terraform des
53
55
| [ aws_instance.other] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance ) | resource |
54
56
| [ aws_instance.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance ) | resource |
55
57
| [ null_resource.download_package] ( https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource ) | resource |
58
+ | [ random_string.this] ( https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string ) | resource |
56
59
| [ aws_availability_zones.available] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones ) | data source |
57
60
| [ aws_route53_zone.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone ) | data source |
58
61
| [ aws_ssm_parameter.al2] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter ) | data source |
Original file line number Diff line number Diff line change @@ -368,6 +368,15 @@ module "alb" {
368
368
load_balancing_anomaly_mitigation = " on"
369
369
load_balancing_cross_zone_enabled = false
370
370
371
+ target_group_health = {
372
+ dns_failover = {
373
+ minimum_healthy_targets_count = 2
374
+ }
375
+ unhealthy_state_routing = {
376
+ minimum_healthy_targets_percentage = 50
377
+ }
378
+ }
379
+
371
380
health_check = {
372
381
enabled = true
373
382
interval = 30
@@ -568,8 +577,14 @@ resource "aws_cognito_user_pool_client" "this" {
568
577
allowed_oauth_flows_user_pool_client = true
569
578
}
570
579
580
+ resource "random_string" "this" {
581
+ length = 5
582
+ upper = false
583
+ special = false
584
+ }
585
+
571
586
resource "aws_cognito_user_pool_domain" "this" {
572
- domain = local. name
587
+ domain = " ${ local . name } - ${ random_string . this . result } "
573
588
user_pool_id = aws_cognito_user_pool. this . id
574
589
}
575
590
Original file line number Diff line number Diff line change @@ -4,11 +4,15 @@ terraform {
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 5.46 "
7
+ version = " >= 5.59 "
8
8
}
9
9
null = {
10
10
source = " hashicorp/null"
11
11
version = " >= 2.0"
12
12
}
13
+ random = {
14
+ source = " hashicorp/random"
15
+ version = " >= 3.6"
16
+ }
13
17
}
14
18
}
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
20
20
| Name | Version |
21
21
| ------| ---------|
22
22
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
23
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.46 |
23
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.59 |
24
24
25
25
## Providers
26
26
27
27
| Name | Version |
28
28
| ------| ---------|
29
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.46 |
29
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.59 |
30
30
31
31
## Modules
32
32
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 5.46 "
7
+ version = " >= 5.59 "
8
8
}
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ Note that this example may create resources which cost money. Run `terraform des
21
21
| Name | Version |
22
22
| ------| ---------|
23
23
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
24
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.46 |
24
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.59 |
25
25
| <a name =" requirement_null " ></a > [ null] ( #requirement\_ null ) | >= 2.0 |
26
26
| <a name =" requirement_tls " ></a > [ tls] ( #requirement\_ tls ) | >= 4.0 |
27
27
28
28
## Providers
29
29
30
30
| Name | Version |
31
31
| ------| ---------|
32
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.46 |
32
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.59 |
33
33
| <a name =" provider_null " ></a > [ null] ( #provider\_ null ) | >= 2.0 |
34
34
| <a name =" provider_tls " ></a > [ tls] ( #provider\_ tls ) | >= 4.0 |
35
35
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 5.46 "
7
+ version = " >= 5.59 "
8
8
}
9
9
null = {
10
10
source = " hashicorp/null"
Original file line number Diff line number Diff line change @@ -540,6 +540,31 @@ resource "aws_lb_target_group" "this" {
540
540
}
541
541
}
542
542
543
+ dynamic "target_group_health" {
544
+ for_each = try ([each . value . target_group_health ], [])
545
+
546
+ content {
547
+
548
+ dynamic "dns_failover" {
549
+ for_each = try ([target_group_health . value . dns_failover ], [])
550
+
551
+ content {
552
+ minimum_healthy_targets_count = try (dns_failover. value . minimum_healthy_targets_count , null )
553
+ minimum_healthy_targets_percentage = try (dns_failover. value . minimum_healthy_targets_percentage , null )
554
+ }
555
+ }
556
+
557
+ dynamic "unhealthy_state_routing" {
558
+ for_each = try ([target_group_health . value . unhealthy_state_routing ], [])
559
+
560
+ content {
561
+ minimum_healthy_targets_count = try (unhealthy_state_routing. value . minimum_healthy_targets_count , null )
562
+ minimum_healthy_targets_percentage = try (unhealthy_state_routing. value . minimum_healthy_targets_percentage , null )
563
+ }
564
+ }
565
+ }
566
+ }
567
+
543
568
dynamic "target_health_state" {
544
569
for_each = try ([each . value . target_health_state ], [])
545
570
content {
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ module "trust_store" {
30
30
| Name | Version |
31
31
| ------| ---------|
32
32
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
33
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.46 |
33
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.59 |
34
34
35
35
## Providers
36
36
37
37
| Name | Version |
38
38
| ------| ---------|
39
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.46 |
39
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.59 |
40
40
41
41
## Modules
42
42
You can’t perform that action at this time.
0 commit comments