Changed docs

This commit is contained in:
Conor.McManus 2019-04-10 15:41:36 +02:00
parent de77b18511
commit e528db59d0

View file

@ -31,9 +31,18 @@ The vars directory is scanned by atmos and matches the current workspace to the
To get the most out of Terraform workspaces it is recommended that the AWS provider uses the profile attribute.
```
# main.tf
provider "aws" {
region = "${var.region}"
profile = "${terraform.workspace}"
profile = "${var.workspace}"
}
```
```
# variables.tf
variable "workspace" {
type = "string"
default = "default"
}
```