From 99d5e459d435931186c3ecb49f96d0e3ce52001d Mon Sep 17 00:00:00 2001 From: Alex Eftimiades Date: Mon, 11 Dec 2017 15:56:44 -0500 Subject: [PATCH] Set `TF_VAR_deploy_stage=test` for `terraform plan` instead of `yarn run zip`. This fixes [Issue ](https://github.com/lucidprogrammer/graphql-lambda-terraform/issues/1) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fa32737..b8a841e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "production-install": "yarn install --modules-folder=./build/node_modules --production=true", "zip-graphql": "yarn run production-install && git archive -9 -o ./build/graphql.zip HEAD:src/graphql && cd build && zip -ur ./graphql.zip . -i \"node_modules/*\"", "zip": "yarn run zip-graphql", - "test-deploy-plan": "TF_VAR_deploy_stage=test yarn run zip && terraform plan -out=./infrastructure/deployment/test/terraform.tfstate", + "test-deploy-plan": "yarn run zip && TF_VAR_deploy_stage=test terraform plan -out=./infrastructure/deployment/test/terraform.tfstate", "test-deploy": "TF_VAR_deploy_stage=test yarn run test-deploy-plan && terraform apply ./infrastructure/deployment/test/terraform.tfstate" }, "dependencies": {