Skip to content

Commit

Permalink
Provider: fix provider aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Feb 25, 2024
1 parent 5b6cbc8 commit 0950237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -138,6 +138,3 @@ resource "aws_cloudfront_distribution" "this" {
aws_ecs_service.this
]
}



3 changes: 2 additions & 1 deletion provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 0950237

Please sign in to comment.