From 799df2bcd07d8bb180fc082b09ffdd7ad90f6ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=8A=B9=EC=A7=84?= Date: Sat, 16 Mar 2024 21:23:52 +0900 Subject: [PATCH] [FIX] fix env --- .github/workflows/backend-cd.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index 954d02b..c662ab0 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -44,6 +44,16 @@ jobs: cd ./terraform terraform init terraform apply -auto-approve + env: + TF_VAR_vpc_cidr_block: ${{ secrets.TF_VAR_vpc_cidr_block }} + TF_VAR_public_subnet_cidr: ${{ secrets.TF_VAR_public_subnet_cidr }} + TF_VAR_private_subnet_cidr: ${{ toJson(secrets.TF_VAR_private_subnet_cidr) }} + TF_VAR_ami: ${{ secrets.TF_VAR_ami }} + TF_VAR_db_password: ${{ secrets.TF_VAR_db_password }} + TF_VAR_tags: ${{ toJson(secrets.TF_VAR_tags) }} + TF_VAR_elb_protocol: ${{ toJson(secrets.TF_VAR_elb_protocol) }} + TF_VAR_elb_port: ${{ toJson(secrets.TF_VAR_elb_port) }} + TF_VAR_rabbitmq: ${{ toJson(secrets.TF_VAR_rabbitmq) }} - name: Get EC2 instance IP id: get_ec2_ip