Skip to content

Commit

Permalink
Upgrade terraform-aws-modules/acm/aws from v2.14.0 to v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Feb 22, 2024
1 parent 6e8c1c7 commit 43e032e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ resource "random_string" "alb_suffix" {
special = false
}
module "acm_alb" {
# http://registry.terraform.io/modules/terraform-aws-modules/acm/aws/latest
source = "terraform-aws-modules/acm/aws"
version = "~> v2.0"
version = "~> v5.0"
domain_name = var.public_alb_domain
zone_id = data.aws_route53_zone.this.zone_id
tags = var.tags
Expand Down Expand Up @@ -52,7 +53,7 @@ module "alb" {

https_listeners = [
{
"certificate_arn" = module.acm_alb.this_acm_certificate_arn
"certificate_arn" = module.acm_alb.acm_certificate_arn
"port" = 443
},
]
Expand Down
5 changes: 3 additions & 2 deletions cloudfront.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "acm" {
# http://registry.terraform.io/modules/terraform-aws-modules/acm/aws/latest
source = "terraform-aws-modules/acm/aws"
version = "~> v2.0"
version = "~> v5.0"
domain_name = var.site_domain
zone_id = data.aws_route53_zone.this.zone_id
tags = var.tags
Expand Down Expand Up @@ -106,7 +107,7 @@ resource "aws_cloudfront_distribution" "this" {


viewer_certificate {
acm_certificate_arn = module.acm.this_acm_certificate_arn
acm_certificate_arn = module.acm.acm_certificate_arn
ssl_support_method = "sni-only"
minimum_protocol_version = "TLSv1.1_2016"
}
Expand Down

0 comments on commit 43e032e

Please sign in to comment.