File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
.github/actions/tf-plan-apply Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 6161 terraform_wrapper : false
6262
6363 - name : Initialise Terraform
64- run : terraform init -backend-config=${{ inputs.backend_conf }}
64+ # run: terraform init -backend-config=${{ inputs.backend_conf }}
65+ run : terraform init
6566 working-directory : ${{ inputs.working_directory }}
6667 shell : bash
6768
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ terraform {
1313 region = " eu-west-2"
1414 key = " ndr_base_iam/terraform.tfstate"
1515 encrypt = true
16+ bucket = local. shared_terraform_state_bucket
1617 }
17- }
18+ }
Original file line number Diff line number Diff line change @@ -29,4 +29,6 @@ locals {
2929 is_testing = terraform. workspace == " ndr-test"
3030 is_pre_production = terraform. workspace == " pre-prod"
3131 is_prod = terraform. workspace == " prod"
32+
33+ shared_terraform_state_bucket = " ndr-${ var . environment } -terraform-state-${ data . aws_caller_identity . current . account_id } "
3234}
You can’t perform that action at this time.
0 commit comments