Changed docs
This commit is contained in:
parent
de77b18511
commit
e528db59d0
1 changed files with 12 additions and 3 deletions
11
README.md
11
README.md
|
|
@ -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.
|
To get the most out of Terraform workspaces it is recommended that the AWS provider uses the profile attribute.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# main.tf
|
||||||
provider "aws" {
|
provider "aws" {
|
||||||
region = "${var.region}"
|
region = "${var.region}"
|
||||||
profile = "${terraform.workspace}"
|
profile = "${var.workspace}"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
# variables.tf
|
||||||
|
variable "workspace" {
|
||||||
|
type = "string"
|
||||||
|
default = "default"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue