You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if it was possible to add a name of some kind for the allocation in the json file, to easier present the content of the json file in some kind of documentation or something.
I may do something like this to solve what I'm after:
# Create IPAM allocationslocals {
apps=toset([
"app1",
"app2",
"app3"
])
}
resource"ipam_allocation""apps" {
for_each=local.appspool_id=ipam_pool.main.idsize=24
}
# Output IPAM allocation with application name as key and IP allocation as value output"apps_ip_allocation" {
description="Shows every IP allocation done for apps."value={ fork,vinipam_allocation.apps:k=>v.cidr }
}
To get a JSON file, we can for example doterraform output -json | jq '.apps_ip_allocation.value' > ipam_allocations.json.
It would be great if it was possible to add a name of some kind for the allocation in the json file, to easier present the content of the json file in some kind of documentation or something.
Suggested configuration
The text was updated successfully, but these errors were encountered: