outputs.tf
1
2
3
4
5
6
7
8
9
output "connection_ids" {
  description = "Map of peering connection logical key to connection ID"
  value       = { for k, v in aws_vpc_peering_connection.this : k => v.id }
}

output "connection_statuses" {
  description = "Map of peering connection logical key to status"
  value       = { for k, v in aws_vpc_peering_connection.this : k => v.accept_status }
}