Skip to content

Commit

Permalink
Added missing environment output (#32)
Browse files Browse the repository at this point in the history
* Added missing environment output

* Regenerated readme
  • Loading branch information
Jamie-BitFlight authored and osterman committed Jul 25, 2018
1 parent 6edc9b2 commit 05cad64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ Available targets:
| attributes | Normalized attributes |
| context | Context of this module to pass between other modules |
| delimiter | Delimiter used in label ID |
| environment | Normalized environment |
| id | Disambiguated ID |
| name | Normalized name |
| namespace | Normalized namespace |
Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
| attributes | Normalized attributes |
| context | Context of this module to pass between other modules |
| delimiter | Delimiter used in label ID |
| environment | Normalized environment |
| id | Disambiguated ID |
| name | Normalized name |
| namespace | Normalized namespace |
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ output "stage" {
description = "Normalized stage"
}

output "environment" {
value = "${local.enabled ? local.environment : ""}"
description = "Normalized environment"
}

output "attributes" {
value = "${local.enabled ? local.attributes : ""}"
description = "Normalized attributes"
Expand Down

0 comments on commit 05cad64

Please sign in to comment.