Skip to content

Commit dd8e1f9

Browse files
Mohitsharma44claude
andcommitted
chore(infra): enable S3 backend after bootstrap
State bucket and DynamoDB lock table have been provisioned. Switches from local state to remote S3 backend. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c044ae4 commit dd8e1f9

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

infra/providers.tf

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ terraform {
88
}
99
}
1010

11-
# S3 backend will be configured after bootstrap (state.tf resources created first)
12-
# Uncomment after running: terraform apply -target=aws_s3_bucket.state -target=aws_dynamodb_table.state_lock
13-
# Then run: terraform init -migrate-state
14-
#
15-
# backend "s3" {
16-
# bucket = "cuspuo-terraform-state"
17-
# key = "cuspuo-site/terraform.tfstate"
18-
# region = "us-east-1"
19-
# dynamodb_table = "cuspuo-terraform-lock"
20-
# encrypt = true
21-
# profile = "muon"
22-
# }
11+
backend "s3" {
12+
bucket = "cuspuo-terraform-state"
13+
key = "cuspuo-site/terraform.tfstate"
14+
region = "us-east-1"
15+
dynamodb_table = "cuspuo-terraform-lock"
16+
encrypt = true
17+
profile = "muon"
18+
}
2319
}
2420

2521
provider "aws" {

0 commit comments

Comments
 (0)