Skip to content

Commit

Permalink
fix: Matched type of extra certificate var in module to type expected…
Browse files Browse the repository at this point in the history
… in resource (#259)

Co-authored-by: Anton Babenko <anton@antonbabenko.com>
  • Loading branch information
iNoahNothing and antonbabenko authored Oct 28, 2022
1 parent a289290 commit 144af83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/complete-alb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Note that this example may create resources which cost money. Run `terraform des
| <a name="module_lambda_without_allowed_triggers"></a> [lambda\_without\_allowed\_triggers](#module\_lambda\_without\_allowed\_triggers) | terraform-aws-modules/lambda/aws | ~> 3.0 |
| <a name="module_lb_disabled"></a> [lb\_disabled](#module\_lb\_disabled) | ../../ | n/a |
| <a name="module_security_group"></a> [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
| <a name="module_wildcard_cert"></a> [wildcard\_cert](#module\_wildcard\_cert) | terraform-aws-modules/acm/aws | ~> 3.0 |

## Resources

Expand Down
15 changes: 15 additions & 0 deletions examples/complete-alb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ module "acm" {
zone_id = data.aws_route53_zone.this.id
}

module "wildcard_cert" {
source = "terraform-aws-modules/acm/aws"
version = "~> 3.0"

domain_name = "*.${local.domain_name}" # trimsuffix(data.aws_route53_zone.this.name, ".")
zone_id = data.aws_route53_zone.this.id
}

##################################################################
# AWS Cognito User Pool
##################################################################
Expand Down Expand Up @@ -178,6 +186,13 @@ module "alb" {
},
]

extra_ssl_certs = [
{
https_listener_index = 0
certificate_arn = module.wildcard_cert.acm_certificate_arn
}
]

https_listener_rules = [
{
https_listener_index = 0
Expand Down

0 comments on commit 144af83

Please sign in to comment.