Skip to content

Commit 8004fb8

Browse files
committed
[NDR-108] set for pr
1 parent eec2991 commit 8004fb8

File tree

2 files changed

+30
-23
lines changed

2 files changed

+30
-23
lines changed

.github/workflows/terraform-deploy-feature-to-sandbox.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
<<<<<<< HEAD
3434
<<<<<<< HEAD
3535
<<<<<<< HEAD
36+
<<<<<<< HEAD
3637
<<<<<<< HEAD
3738
# Checkout the repository to the GitHub Actions runner
3839
- name: Checkout Base
@@ -54,18 +55,23 @@ jobs:
5455
=======
5556
=======
5657
>>>>>>> f5406c0 ([NDR-108] re-adding db and making action right)
58+
=======
59+
>>>>>>> 1f51c26 ([NDR-108] set for pr)
5760
- name: Checkout Base
5861
uses: actions/checkout@v4
5962
with:
6063
ref: main
6164
<<<<<<< HEAD
65+
<<<<<<< HEAD
6266
>>>>>>> 0716aef ([NDR-108] reverting the workflow)
6367
=======
6468
>>>>>>> ae84789 ([NDR-108] temp removing base)
6569
=======
6670
>>>>>>> f5406c0 ([NDR-108] re-adding db and making action right)
6771
=======
6872
>>>>>>> 043bc42 ([NDR-108] temp standing down base init)
73+
=======
74+
>>>>>>> 1f51c26 ([NDR-108] set for pr)
6975

7076
- name: Configure AWS Credentials
7177
uses: aws-actions/configure-aws-credentials@v4
@@ -85,25 +91,25 @@ jobs:
8591
terraform_version: 1.11.4
8692
terraform_wrapper: false
8793

88-
# - name: Terraform Init Base
89-
# id: base_init
90-
# run: terraform init -backend-config=backend.conf
91-
# working-directory: ./infrastructure
92-
# shell: bash
93-
# - name: Terraform Set Workspace Base
94-
# id: base_workspace
95-
# run: terraform workspace select -or-create ${{ github.event.inputs.sandboxWorkspace}}
96-
# working-directory: ./infrastructure
97-
# shell: bash
98-
# - name: Terraform Plan Base
99-
# id: base_plan
100-
# run: |
101-
# terraform plan -input=false -no-color -var-file="${{vars.TF_VARS_FILE}}" -out tf-base.plan
102-
# working-directory: ./infrastructure
103-
# shell: bash
104-
# - name: Terraform Apply Base
105-
# run: terraform apply -auto-approve -input=false tf-base.plan
106-
# working-directory: ./infrastructure
94+
- name: Terraform Init Base
95+
id: base_init
96+
run: terraform init -backend-config=backend.conf
97+
working-directory: ./infrastructure
98+
shell: bash
99+
- name: Terraform Set Workspace Base
100+
id: base_workspace
101+
run: terraform workspace select -or-create ${{ github.event.inputs.sandboxWorkspace}}
102+
working-directory: ./infrastructure
103+
shell: bash
104+
- name: Terraform Plan Base
105+
id: base_plan
106+
run: |
107+
terraform plan -input=false -no-color -var-file="${{vars.TF_VARS_FILE}}" -out tf-base.plan
108+
working-directory: ./infrastructure
109+
shell: bash
110+
- name: Terraform Apply Base
111+
run: terraform apply -auto-approve -input=false tf-base.plan
112+
working-directory: ./infrastructure
107113
- name: Checkout Branch
108114
uses: actions/checkout@v5
109115
with:

infrastructure/main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ terraform {
1212
}
1313
}
1414
backend "s3" {
15-
use_lockfile = true
16-
region = "eu-west-2"
17-
key = "ndr/terraform.tfstate"
18-
encrypt = true
15+
dynamodb_table = "ndr-terraform-locks"
16+
use_lockfile = true
17+
region = "eu-west-2"
18+
key = "ndr/terraform.tfstate"
19+
encrypt = true
1920
}
2021
}
2122
provider "aws" {

0 commit comments

Comments
 (0)