Skip to content

Commit

Permalink
Use join-splat pattern for outputs using resources with count (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh authored Feb 27, 2018
1 parent d779964 commit def628b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2017 Cloud Posse, LLC
Copyright 2017-2018 Cloud Posse, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 5 additions & 5 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
output "id" {
value = "${null_resource.default.triggers.id}"
value = "${join("", null_resource.default.*.triggers.id)}"
description = "Disambiguated ID"
}

output "name" {
value = "${null_resource.default.triggers.name}"
value = "${join("", null_resource.default.*.triggers.name)}"
description = "Normalized name"
}

output "namespace" {
value = "${null_resource.default.triggers.namespace}"
value = "${join("", null_resource.default.*.triggers.namespace)}"
description = "Normalized namespace"
}

output "stage" {
value = "${null_resource.default.triggers.stage}"
value = "${join("", null_resource.default.*.triggers.stage)}"
description = "Normalized stage"
}

output "attributes" {
value = "${null_resource.default.triggers.attributes}"
value = "${join("", null_resource.default.*.triggers.attributes)}"
description = "Normalized attributes"
}

Expand Down

0 comments on commit def628b

Please sign in to comment.