Skip to content

Commit ef01c8f

Browse files
[ndr-297] removing need for conf files
1 parent a8eca7f commit ef01c8f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/actions/tf-plan-apply/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ runs:
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

base_iam/terraform.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
}

base_iam/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)