From 43e032e40111a0475732f4f20e5d1258511fe1de Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Thu, 22 Feb 2024 15:45:22 +0900 Subject: [PATCH] Upgrade `terraform-aws-modules/acm/aws` from `v2.14.0` to `v5.0.0` --- alb.tf | 5 +++-- cloudfront.tf | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/alb.tf b/alb.tf index d51ab52..5c5361c 100644 --- a/alb.tf +++ b/alb.tf @@ -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 @@ -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 }, ] diff --git a/cloudfront.tf b/cloudfront.tf index 5fc8778..030a87b 100644 --- a/cloudfront.tf +++ b/cloudfront.tf @@ -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 @@ -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" }