From 095023761ae4d67aaf489553057805eb19cec38c Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Sun, 25 Feb 2024 14:00:52 +0900 Subject: [PATCH] Provider: fix provider aliases --- cloudfront.tf | 5 +---- provider.tf | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cloudfront.tf b/cloudfront.tf index d242ea0..785cab8 100644 --- a/cloudfront.tf +++ b/cloudfront.tf @@ -7,7 +7,7 @@ module "acm" { tags = var.tags providers = { - aws = aws.us_east_1 # cloudfront needs acm certificate to be from "us-east-1" region + aws = aws.virginia # cloudfront needs acm certificate to be from "us-east-1" region } } @@ -138,6 +138,3 @@ resource "aws_cloudfront_distribution" "this" { aws_ecs_service.this ] } - - - diff --git a/provider.tf b/provider.tf index 301375c..c7da590 100644 --- a/provider.tf +++ b/provider.tf @@ -6,11 +6,12 @@ terraform { } provider "aws" { - alias = "us_east_1" + alias = "virginia" region = "us-east-1" } provider "aws" { + alias = "tokyo" region = "ap-northeast-1" }