File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments