From 7c42534a4490c0fda7b408a6d65b8837aec90ed7 Mon Sep 17 00:00:00 2001 From: Martin Galeano Galeano Date: Tue, 30 Apr 2024 19:45:12 -0300 Subject: [PATCH] Use latest version of tfstate module --- .../management/primary_region/base-tf-backend/config.tf | 7 ++++++- .../management/primary_region/base-tf-backend/main.tf | 9 ++++++++- .../security/primary_region/base-tf-backend/config.tf | 7 ++++++- template/security/primary_region/base-tf-backend/main.tf | 8 +++++++- template/shared/primary_region/base-tf-backend/config.tf | 7 ++++++- template/shared/primary_region/base-tf-backend/main.tf | 8 +++++++- 6 files changed, 40 insertions(+), 6 deletions(-) diff --git a/template/management/primary_region/base-tf-backend/config.tf b/template/management/primary_region/base-tf-backend/config.tf index a981985..b6e626d 100644 --- a/template/management/primary_region/base-tf-backend/config.tf +++ b/template/management/primary_region/base-tf-backend/config.tf @@ -1,6 +1,11 @@ #=============================# # AWS Provider Settings # #=============================# +provider "aws" { + region = var.region + profile = var.profile +} + provider "aws" { alias = "main_region" region = var.region @@ -17,7 +22,7 @@ terraform { required_version = "~> 1.2" required_providers { - aws = "~> 4.0" + aws = "~> 5.0" } # Uncomment after first `apply` diff --git a/template/management/primary_region/base-tf-backend/main.tf b/template/management/primary_region/base-tf-backend/main.tf index f052335..45fce76 100644 --- a/template/management/primary_region/base-tf-backend/main.tf +++ b/template/management/primary_region/base-tf-backend/main.tf @@ -1,5 +1,5 @@ module "terraform_backend" { - source = "github.com/binbashar/terraform-aws-tfstate-backend.git?ref=v1.0.23" + source = "github.com/binbashar/terraform-aws-tfstate-backend.git?ref=v1.0.28" # # Bucket Name @@ -25,6 +25,13 @@ module "terraform_backend" { # bucket_replication_enabled = true + + notifications_sns = false + bucket_lifecycle_enabled = false + billing_mode = "PROVISIONED" + enable_point_in_time_recovery = false + create_kms_key = false # USE SSE-S3 + tags = local.tags providers = { diff --git a/template/security/primary_region/base-tf-backend/config.tf b/template/security/primary_region/base-tf-backend/config.tf index ddc127f..e127de7 100644 --- a/template/security/primary_region/base-tf-backend/config.tf +++ b/template/security/primary_region/base-tf-backend/config.tf @@ -1,6 +1,11 @@ #=============================# # AWS Provider Settings # #=============================# +provider "aws" { + region = var.region + profile = var.profile +} + provider "aws" { alias = "main_region" region = var.region @@ -17,7 +22,7 @@ terraform { required_version = "~> 1.2" required_providers { - aws = "~> 4.0" + aws = "~> 5.0" } # Uncomment after first `init` diff --git a/template/security/primary_region/base-tf-backend/main.tf b/template/security/primary_region/base-tf-backend/main.tf index f052335..2fe7a24 100644 --- a/template/security/primary_region/base-tf-backend/main.tf +++ b/template/security/primary_region/base-tf-backend/main.tf @@ -1,5 +1,5 @@ module "terraform_backend" { - source = "github.com/binbashar/terraform-aws-tfstate-backend.git?ref=v1.0.23" + source = "github.com/binbashar/terraform-aws-tfstate-backend.git?ref=v1.0.28" # # Bucket Name @@ -24,6 +24,12 @@ module "terraform_backend" { # Replication # bucket_replication_enabled = true + + notifications_sns = false + bucket_lifecycle_enabled = false + billing_mode = "PROVISIONED" + enable_point_in_time_recovery = false + create_kms_key = false # USE SSE-S3 tags = local.tags diff --git a/template/shared/primary_region/base-tf-backend/config.tf b/template/shared/primary_region/base-tf-backend/config.tf index b5c61d6..a344e15 100644 --- a/template/shared/primary_region/base-tf-backend/config.tf +++ b/template/shared/primary_region/base-tf-backend/config.tf @@ -1,6 +1,11 @@ #=============================# # AWS Provider Settings # #=============================# +provider "aws" { + region = var.region + profile = var.profile +} + provider "aws" { alias = "main_region" region = var.region @@ -17,7 +22,7 @@ terraform { required_version = "~> 1.2" required_providers { - aws = "~> 4.0" + aws = "~> 5.0" } # Uncomment after first `init` diff --git a/template/shared/primary_region/base-tf-backend/main.tf b/template/shared/primary_region/base-tf-backend/main.tf index f052335..50f7f20 100644 --- a/template/shared/primary_region/base-tf-backend/main.tf +++ b/template/shared/primary_region/base-tf-backend/main.tf @@ -1,5 +1,5 @@ module "terraform_backend" { - source = "github.com/binbashar/terraform-aws-tfstate-backend.git?ref=v1.0.23" + source = "github.com/binbashar/terraform-aws-tfstate-backend.git?ref=v1.0.28" # # Bucket Name @@ -25,6 +25,12 @@ module "terraform_backend" { # bucket_replication_enabled = true + notifications_sns = false + bucket_lifecycle_enabled = false + billing_mode = "PROVISIONED" + enable_point_in_time_recovery = false + create_kms_key = false # USE SSE-S3 + tags = local.tags providers = {