Skip to content

Commit e75dbfa

Browse files
committed
enh: move to s3 state storage
1 parent 068274a commit e75dbfa

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

infra/opentofu/ecs/backend.tf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
terraform {
2-
# backend "s3" { # TODO: Migrate to S3 when AWS account and S3 bucket is set up
3-
# bucket = "dd-rpc-terraform-state"
4-
# key = "ecs/terraform.tfstate"
5-
# region = var.region
6-
# encrypt = true
7-
# }
8-
backend "local" {}
2+
backend "s3" {
3+
bucket = "dd-test-rpc-terraform-state"
4+
key = "ecs/terraform.tfstate"
5+
region = "us-east-2"
6+
encrypt = true
7+
}
98

109
required_version = ">= 1.0.0"
1110
required_providers {

infra/opentofu/vpc/backend.tf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
terraform {
2-
# backend "s3" { # TODO: Migrate to S3 when AWS account and S3 bucket is set up
3-
# bucket = "dd-rpc-terraform-state"
4-
# key = "vpc/terraform.tfstate"
5-
# region = var.region
6-
# encrypt = true
7-
# }
8-
backend "local" {}
2+
backend "s3" {
3+
bucket = "dd-test-rpc-terraform-state"
4+
key = "vpc/terraform.tfstate"
5+
region = "us-east-2"
6+
encrypt = true
7+
}
98

109
required_version = ">= 1.0.0"
1110
required_providers {

0 commit comments

Comments
 (0)