From 60a2c0ba6f0939b9d50730db9ea5f5142d08313c Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Sat, 15 Jun 2024 15:35:49 +0000 Subject: [PATCH] chore: add custom envvars --- .devcontainer/devcontainer.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 24952ed..7b5f6da 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -17,5 +17,13 @@ ], "settings": {} } + }, + "containerEnv": { + "TF_WORKSPACE": "infradev" + }, + "remoteEnv": { + "TF_CLI_ARGS_apply": "-var-file=${containerEnv:TF_WORKSPACE}.tfvars", + "TF_CLI_ARGS_destroy": "-var-file=${containerEnv:TF_WORKSPACE}.tfvars", + "TF_CLI_ARGS_plan": "-var-file=${containerEnv:TF_WORKSPACE}.tfvars" } }