Skip to content

Commit 113c7b9

Browse files
committed
cd: change var location
1 parent 6375272 commit 113c7b9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/terraform.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ jobs:
3030

3131
- name: Terraform Init
3232
run: |
33-
cd infra && terraform init \
34-
-backend-config="bucket=${{ env.TERRAFORM_S3_STATEFILE_BUCKET }}" \
35-
-backend-config-key="key=${{ github.event.repository.name }}" \
36-
-backend-config="region=${{ env.AWS_REGION }}" \
37-
-backend-config="dynamodb_table=${{ env.TERRAFORM_DYNAMODB_LOCK_TABLE }}"
33+
cd infra && terraform init
3834
3935
- name: Terraform Validate
4036
run: terraform validate

infra/backend.tf

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
terraform {
2-
backend "s3" {}
2+
backend "s3" {
3+
bucket = "buildrun-sa-east-1-terraform-s3-statefile"
4+
dynamodb_table = "buildrun-terraform-state-lock"
5+
# key = "terraform-baseline-project"
6+
region = "sa-east-1"
7+
# profile = "terraform"
8+
# shared_credentials_file = "~/.aws/credentials"
9+
}
310
}

0 commit comments

Comments
 (0)