Closed jimsmith closed 1 year ago
For now, constructing this output works for my needs:
output "pools_information_level_1" {
description = "List of pool information. (level 1)"
value = {
for key in keys(module.ipv4_scope.pools_level_1) :
key => {
arn = module.ipv4_scope.pools_level_1[key].arn
id = module.ipv4_scope.pools_level_1[key].id
ipam_scope_id = module.ipv4_scope.pools_level_1[key].ipam_scope_id
ipam_scope_type = module.ipv4_scope.pools_level_1[key].ipam_scope_type
}
}
}
Hi thanks for opening this issue!
Our design was to output all the attributes of each resource rather than create an output or each or guess which outputs were necessary. The way you used outputs is in line with how we have designed it. Nice work!
Alternatively, teams consuming from a pool can use a data source to search for the pool vs handing them the ID
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc_ipam_pool
Excellent thanks for that @drewmullen I'll close this issue as it's no longer an issue (thanks!)
Hello,
Thanks for this terraform module, can you please have the output of pool ids as well as these are more meaningful when passing these to different teams/projects.
I'm already using
pool_names
but can really be doing with thepool_ids
alongside pool names.