From 2a87a9b79c6f7432d482eec73a060b7de7461dda Mon Sep 17 00:00:00 2001 From: Van Thong Nguyen Date: Mon, 16 Nov 2020 16:29:30 +0100 Subject: [PATCH] update multi-project README --- multi-project/README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/multi-project/README.md b/multi-project/README.md index 69e25f3..02bfbc5 100644 --- a/multi-project/README.md +++ b/multi-project/README.md @@ -24,21 +24,26 @@ This example shows two projects, "a" and "b" split into sub directories. │   └── example.tf └── README.md -Each directory contains a simple text file that can be sourced before running `terraform apply`: +Each directory contains a simple text file that can be **sourced (command to source .envrc file: `source .envrc`)** BEFORE running `terraform apply`: ```shell -$ cat project-a/.envrc +$ cd project-a +$ cat .envrc export GRIDSCALE_TOKEN=project-a-api-token export GRIDSCALE_URL=https://api.gridscale.io export GRIDSCALE_UUID=your-user-id +$ source .envrc +$ terraform apply ``` ```shell -$ cat project-b/.envrc +$ cd project-b +$ cat .envrc export GRIDSCALE_TOKEN=project-b-api-token export GRIDSCALE_URL=https://api.gridscale.io export GRIDSCALE_UUID=your-user-id - +$ source .envrc +$ terraform apply ``` Tip: you can use tools such as direnv(1) to easily switch between environment variables.