#!/bin/sh

# n.b. .name != .values.name (name of resource vs name of instance)
terraform show -json|jq '[.values.root_module.resources | .[] | select(.type == "openstack_compute_instance_v2") | select(.name != "ansible_controller") | {(.values.access_ip_v4): (.values.name)}] | add'
