azurerm_spring_cloud_service

Manages an Azure Spring Cloud Service.

Example Usage

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_application_insights" "example" {
  name                = "tf-test-appinsights"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  application_type    = "web"
}

resource "azurerm_spring_cloud_service" "example" {
  name                = "example-springcloud"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sku_name            = "S0"

  config_server_git_setting {
    uri          = "https://github.com/Azure-Samples/piggymetrics"
    label        = "config"
    search_paths = ["dir1", "dir2"]
  }

  trace {
    connection_string = azurerm_application_insights.example.connection_string
    sample_rate       = 10.0
  }

  tags = {
    Env = "staging"
  }
}

Argument Reference

The following arguments are supported:


The network block supports the following:


The config_server_git_setting block supports the following:


The container_registry block supports the following:


The default_build_service block supports the following:


The marketplace block supports the following:


The repository block supports the following:


The http_basic_auth block supports the following:


The ssh_auth block supports the following:


The trace block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


The required_network_traffic_rules block supports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Spring Cloud services can be imported using the resource id, e.g.

terraform import azurerm_spring_cloud_service.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/spring/spring1