Skip to content

Commit 2efc3ad

Browse files
fix: use unique S3 bucket name with account ID
1 parent e2262a1 commit 2efc3ad

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup S3 Backend Bucket
3939
run: |
4040
echo "📦 Verificando/creando bucket S3 para Terraform state..."
41-
BUCKET_NAME="draftbook-terraform-state"
41+
BUCKET_NAME="draftbook-terraform-state-537692431882"
4242
AWS_REGION="${{ secrets.TF_VAR_AWS_REGION }}"
4343
4444
# Verificar si el bucket existe

.github/workflows/destroy-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Verify S3 Backend Bucket
3939
run: |
4040
echo "📦 Verificando bucket S3 para Terraform state..."
41-
BUCKET_NAME="draftbook-terraform-state"
41+
BUCKET_NAME="draftbook-terraform-state-537692431882"
4242
4343
if aws s3api head-bucket --bucket "$BUCKET_NAME" 2>/dev/null; then
4444
echo "✅ Bucket $BUCKET_NAME existe"

envs/dev/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
terraform {
22
backend "s3" {
3-
bucket = "draftbook-terraform-state"
3+
bucket = "draftbook-terraform-state-537692431882"
44
key = "dev/terraform.tfstate"
55
region = "us-east-2"
66
encrypt = true

scripts/setup-terraform-backend.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -e
77

88
AWS_REGION="us-east-2"
9-
BUCKET_NAME="draftbook-terraform-state"
9+
BUCKET_NAME="draftbook-terraform-state-537692431882"
1010

1111
echo "🚀 Configurando backend de Terraform..."
1212
echo ""

0 commit comments

Comments
 (0)