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" } }