Skip to content

Commit 0f98e73

Browse files
author
Sean Sundberg
authored
Adds names, ids, and count to output (#30)
Signed-off-by: Sean Sundberg <[email protected]>
1 parent ea3ae56 commit 0f98e73

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

outputs.tf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@ output "crn" {
2121
depends_on = [null_resource.post_vpc_address_pfx_default]
2222
description = "The CRN for the vpc instance"
2323
}
24+
25+
output "count" {
26+
value = 1
27+
description = "The number of VPCs created by this module. Always set to 1"
28+
}
29+
30+
output "names" {
31+
value = [local.vpc_name]
32+
depends_on = [null_resource.post_vpc_address_pfx_default]
33+
description = "The name of the vpc instance"
34+
}
35+
36+
output "ids" {
37+
value = [local.vpc_id]
38+
depends_on = [null_resource.post_vpc_address_pfx_default]
39+
description = "The id of the vpc instance"
40+
}

0 commit comments

Comments
 (0)