Skip to content

Commit

Permalink
Remove site_region due to upgrade in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Vermyndax committed Oct 24, 2020
1 parent 95ffb55 commit 230816f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ locals {
# S3 bucket for website, public hosting
resource "aws_s3_bucket" "main_site" {
bucket = var.site_tld
region = var.site_region
# region = var.site_region

policy = <<EOF
{
Expand Down Expand Up @@ -62,8 +62,8 @@ EOF
resource "aws_s3_bucket" "site_www_redirect" {
count = var.create_www_redirect_bucket == "true" ? 1 : 0
bucket = "www.${var.site_tld}"
region = var.site_region
acl = "private"
# region = var.site_region
acl = "private"

website {
redirect_all_requests_to = var.site_tld
Expand All @@ -77,8 +77,8 @@ resource "aws_s3_bucket" "site_www_redirect" {
# S3 bucket for website artifacts
resource "aws_s3_bucket" "site_artifacts" {
bucket = "${var.site_tld}-code-artifacts"
region = var.site_region
acl = "private"
# region = var.site_region
acl = "private"

tags = {
Website-artifacts = var.site_tld
Expand All @@ -88,8 +88,8 @@ resource "aws_s3_bucket" "site_artifacts" {
# S3 bucket for CloudFront logging
resource "aws_s3_bucket" "site_cloudfront_logs" {
bucket = "${var.site_tld}-cloudfront-logs"
region = var.site_region
acl = "private"
# region = var.site_region
acl = "private"
}

# Should give a parameter to create
Expand Down

0 comments on commit 230816f

Please sign in to comment.