Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing columns nat_gateway, service_public_ip_address, ip_configuration, and linked_public_ip_address to the table azure_public_ip Closes #828 #836

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-test/tests/azure_public_ip/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "azurerm_public_ip" "named_test_resource" {
resource_group_name = azurerm_resource_group.named_test_resource.name
location = azurerm_resource_group.named_test_resource.location
allocation_method = "Static"

sku = "Basic"
tags = {
name = var.resource_name
}
Expand Down
24 changes: 24 additions & 0 deletions azure/table_azure_public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,30 @@ func tableAzurePublicIP(_ context.Context) *plugin.Table {
Type: proto.ColumnType_JSON,
Transform: transform.FromField("PublicIPAddressPropertiesFormat.IPTags"),
},
{
Name: "nat_gateway",
Description: "The NatGateway for the Public IP address.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("PublicIPAddressPropertiesFormat.NatGateway"),
},
{
Name: "service_public_ip_address",
Description: "The service public IP address of the public IP address resource.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("PublicIPAddressPropertiesFormat.ServicePublicIPAddress"),
},
{
Name: "ip_configuration",
Description: "The IP configuration associated with the public IP address.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("PublicIPAddressPropertiesFormat.IPConfiguration"),
},
{
Name: "linked_public_ip_address",
Description: "The linked public IP address of the public IP address resource.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("PublicIPAddressPropertiesFormat.LinkedPublicIPAddress"),
},
{
Name: "zones",
Description: "A collection of availability zones denoting the IP allocated for the resource needs to come from",
Expand Down
Loading