Skip to content

Commit

Permalink
add pip for apm
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcalalang committed Jan 18, 2024
1 parent 701f6e7 commit 3d50d6e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion big-ip/terraform/infrastructure/azureBigipInstances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ resource "azurerm_public_ip" "public-ip-address-management" {
}
}

resource "azurerm_public_ip" "public-ip-address-apm" {
name = "pip-${random_uuid.big-ip-random-uuid[0].result}-${count.index}"
location = azurerm_resource_group.big-ip-resource-group.location
resource_group_name = azurerm_resource_group.big-ip-resource-group.name
allocation_method = "Dynamic"
count = sum([var.big-ip-instance-count])
domain_name_label = "apm-${random_uuid.big-ip-random-uuid[0].result}-${count.index}"
tags = {
environment = var.tag_environment
resource = var.tag_resource_type
Owner = var.tag_owner
}
}

resource "azurerm_network_interface" "nic-management" {
name = "nic-management-${random_uuid.big-ip-random-uuid[0].result}-${count.index}"
location = azurerm_resource_group.big-ip-resource-group.location
Expand Down Expand Up @@ -366,4 +380,4 @@ resource "azurerm_dev_test_global_vm_shutdown_schedule" "instance-group-azure-in
resource "time_sleep" "azure_bigip_ready" {
depends_on = [azurerm_virtual_machine.big-ip-instance]
create_duration = var.bigip_ready
}
}

0 comments on commit 3d50d6e

Please sign in to comment.