Manages a Spring Cloud Gateway Custom Domain.
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "example" {
name = "example"
location = "West Europe"
}
resource "azurerm_spring_cloud_service" "example" {
name = "example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku_name = "E0"
}
resource "azurerm_spring_cloud_gateway" "example" {
name = "default"
spring_cloud_service_id = azurerm_spring_cloud_service.example.id
}
resource "azurerm_spring_cloud_gateway_custom_domain" "example" {
name = "example.com"
spring_cloud_gateway_id = azurerm_spring_cloud_gateway.example.id
}
The following arguments are supported:
name
- (Required) The name which should be used for this Spring Cloud Gateway Custom Domain. Changing this forces a new Spring Cloud Gateway Custom Domain to be created.
spring_cloud_gateway_id
- (Required) The ID of the Spring Cloud Gateway. Changing this forces a new Spring Cloud Gateway Custom Domain to be created.
thumbprint
- (Optional) Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud Gateway Custom Domain.In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Spring Cloud Gateway Custom Domain.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Spring Cloud Gateway Custom Domain.read
- (Defaults to 5 minutes) Used when retrieving the Spring Cloud Gateway Custom Domain.update
- (Defaults to 30 minutes) Used when updating the Spring Cloud Gateway Custom Domain.delete
- (Defaults to 30 minutes) Used when deleting the Spring Cloud Gateway Custom Domain.Spring Cloud Gateway Custom Domains can be imported using the resource id
, e.g.
terraform import azurerm_spring_cloud_gateway_custom_domain.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/gateways/gateway1/domains/domain1