Skip to content

Commit

Permalink
Use latest version of tfstate module
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Galeano Galeano committed Apr 30, 2024
1 parent b21c7ef commit 7c42534
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
7 changes: 6 additions & 1 deletion template/management/primary_region/base-tf-backend/config.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#=============================#
# AWS Provider Settings #
#=============================#
provider "aws" {
region = var.region
profile = var.profile
}

provider "aws" {
alias = "main_region"
region = var.region
Expand All @@ -17,7 +22,7 @@ terraform {
required_version = "~> 1.2"

required_providers {
aws = "~> 4.0"
aws = "~> 5.0"
}

# Uncomment after first `apply`
Expand Down
9 changes: 8 additions & 1 deletion template/management/primary_region/base-tf-backend/main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 = {
Expand Down
7 changes: 6 additions & 1 deletion template/security/primary_region/base-tf-backend/config.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#=============================#
# AWS Provider Settings #
#=============================#
provider "aws" {
region = var.region
profile = var.profile
}

provider "aws" {
alias = "main_region"
region = var.region
Expand All @@ -17,7 +22,7 @@ terraform {
required_version = "~> 1.2"

required_providers {
aws = "~> 4.0"
aws = "~> 5.0"
}

# Uncomment after first `init`
Expand Down
8 changes: 7 additions & 1 deletion template/security/primary_region/base-tf-backend/main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
7 changes: 6 additions & 1 deletion template/shared/primary_region/base-tf-backend/config.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#=============================#
# AWS Provider Settings #
#=============================#
provider "aws" {
region = var.region
profile = var.profile
}

provider "aws" {
alias = "main_region"
region = var.region
Expand All @@ -17,7 +22,7 @@ terraform {
required_version = "~> 1.2"

required_providers {
aws = "~> 4.0"
aws = "~> 5.0"
}

# Uncomment after first `init`
Expand Down
8 changes: 7 additions & 1 deletion template/shared/primary_region/base-tf-backend/main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 = {
Expand Down

0 comments on commit 7c42534

Please sign in to comment.