From def628bea7af516a2d746984a5a74ecaa7cb6ad3 Mon Sep 17 00:00:00 2001 From: Andriy Knysh Date: Mon, 26 Feb 2018 20:45:31 -0500 Subject: [PATCH] Use `join-splat` pattern for outputs using resources with `count` (#16) --- LICENSE | 2 +- outputs.tf | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 6b9d898..808ecf3 100644 --- a/LICENSE +++ b/LICENSE @@ -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. diff --git a/outputs.tf b/outputs.tf index 04c7ad3..c72d721 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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" }