Manages an Application Gateway for Containers (ALB).
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_application_load_balancer" "example" {
name = "example"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
}
The following arguments are supported:
name
- (Required) The name which should be used for this Application Gateway for Containers (ALB). Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of Resource Group where the Application Gateway for Containers (ALB) should exist. Changing this forces a new resource to be created.
location
- (Required) The Azure Region where the Application Gateway for Containers (ALB) should exist. Changing this forces a new resource to be created.
tags
- (Optional) A mapping of tags which should be assigned to the Application Gateway for Containers (ALB).In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Application Gateway for Containers (ALB).
primary_configuration_endpoint
- The primary configuration endpoints of the Application Gateway for Containers (ALB).
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Application Gateway for Containers (ALB)read
- (Defaults to 5 minutes) Used when retrieving the Application Gateway for Containers (ALB).update
- (Defaults to 30 minutes) Used when updating the Application Gateway for Containers (ALB)delete
- (Defaults to 30 minutes) Used when deleting the Application Gateway for Containers (ALB).Application Gateway for Containers (ALB) can be imported using the resource id
, e.g.
terraform import azurerm_application_load_balancer.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ServiceNetworking/trafficControllers/alb1