Skip to content

Commit

Permalink
Added .env loading command and tf vars sample
Browse files Browse the repository at this point in the history
  • Loading branch information
code4clouds committed Mar 26, 2019
1 parent 39918c4 commit 22adc02
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions shared/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export TF_VAR_env=dev
export TF_VAR_location=eastus
```

After saving the file set environment using:

``` bash
. .env
```

Alternative use the variable.tf files in the directories and add the default key on the file as shown on the example below:

``` json
Expand All @@ -45,4 +51,20 @@ variable "location" {
description = "The name of the target location"
default = "eastus"
}
variable "env" {
type = "string",
description = "The short name of the target env (i.e. dev, staging, or prod)"
defailt = "dev"
}
variable "org" {
type = "string",
description = "The short name of the organization"
default = "cse"
}
variable "app_name" {
type = "string",
description = "The short name of the application"
default = "cblt"
}

```

0 comments on commit 22adc02

Please sign in to comment.