outputs.tf (16 lines of code) (raw):
output "name" {
description = "The name of the created public IP address"
value = azurerm_public_ip.this.name
}
output "public_ip_address" {
description = "The assigned IP address of the public IP"
value = azurerm_public_ip.this.ip_address
}
output "public_ip_id" {
description = "The ID of the created public IP address"
value = azurerm_public_ip.this.id
}
output "resource_id" {
description = "The ID of the created public IP address"
value = azurerm_public_ip.this.id
}