Skip to content

Commit 144af83

Browse files
fix: Matched type of extra certificate var in module to type expected in resource (#259)
Co-authored-by: Anton Babenko <[email protected]>
1 parent a289290 commit 144af83

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

examples/complete-alb/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Note that this example may create resources which cost money. Run `terraform des
4242
| <a name="module_lambda_without_allowed_triggers"></a> [lambda\_without\_allowed\_triggers](#module\_lambda\_without\_allowed\_triggers) | terraform-aws-modules/lambda/aws | ~> 3.0 |
4343
| <a name="module_lb_disabled"></a> [lb\_disabled](#module\_lb\_disabled) | ../../ | n/a |
4444
| <a name="module_security_group"></a> [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
45+
| <a name="module_wildcard_cert"></a> [wildcard\_cert](#module\_wildcard\_cert) | terraform-aws-modules/acm/aws | ~> 3.0 |
4546

4647
## Resources
4748

examples/complete-alb/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ module "acm" {
5959
zone_id = data.aws_route53_zone.this.id
6060
}
6161

62+
module "wildcard_cert" {
63+
source = "terraform-aws-modules/acm/aws"
64+
version = "~> 3.0"
65+
66+
domain_name = "*.${local.domain_name}" # trimsuffix(data.aws_route53_zone.this.name, ".")
67+
zone_id = data.aws_route53_zone.this.id
68+
}
69+
6270
##################################################################
6371
# AWS Cognito User Pool
6472
##################################################################
@@ -178,6 +186,13 @@ module "alb" {
178186
},
179187
]
180188

189+
extra_ssl_certs = [
190+
{
191+
https_listener_index = 0
192+
certificate_arn = module.wildcard_cert.acm_certificate_arn
193+
}
194+
]
195+
181196
https_listener_rules = [
182197
{
183198
https_listener_index = 0

0 commit comments

Comments
 (0)