Skip to content

Commit 8bbca24

Browse files
Add environment variables to Terraform Plan step
- Plan step was missing TF_VAR_* environment variables - This caused 'No value for required variable' errors - Both Plan and Apply steps now have identical env vars
1 parent 08e0664 commit 8bbca24

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
- name: Terraform Plan
4343
working-directory: terraform
4444
run: terraform plan -input=false
45+
env:
46+
TF_VAR_vpc_id: ${{ secrets.VPC_ID }}
47+
TF_VAR_subnet_ids: ${{ secrets.ES_SUBNET_IDS }}
48+
TF_VAR_assign_public_ip: false
49+
TF_VAR_allowed_cidr_blocks: ${{ secrets.VPC_CIDR_BLOCKS }}
50+
TF_VAR_elasticsearch_password: ${{ secrets.ELASTICSEARCH_PASSWORD }}
51+
TF_VAR_task_cpu: 1024
52+
TF_VAR_task_memory: 2048
53+
TF_VAR_heap_size: 1024
54+
TF_VAR_enable_service_discovery: true
4555

4656
- name: Terraform Apply
4757
working-directory: terraform

0 commit comments

Comments
 (0)