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