azurerm_spring_cloud_build_pack_binding

Manages a Spring Cloud Build Pack Binding.

Example Usage

provider "azurerm" {
  features {}
}

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

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            = "E0"
}

resource "azurerm_spring_cloud_builder" "example" {
  name                    = "example"
  spring_cloud_service_id = azurerm_spring_cloud_service.example.id

  build_pack_group {
    name           = "mix"
    build_pack_ids = ["tanzu-Build Packs/java-azure"]
  }

  stack {
    id      = "io.Build Packs.stacks.bionic"
    version = "base"
  }
}

resource "azurerm_spring_cloud_build_pack_binding" "example" {
  name                    = "example"
  spring_cloud_builder_id = azurerm_spring_cloud_builder.example.id
  binding_type            = "ApplicationInsights"
  launch {
    properties = {
      abc           = "def"
      any-string    = "any-string"
      sampling-rate = "12.0"
    }

    secrets = {
      connection-string = "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX"
    }
  }
}

Arguments Reference

The following arguments are supported:



A launch block supports the following:

Attributes Reference

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

Timeouts

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

Import

Spring Cloud Build Pack Bindings can be imported using the resource id, e.g.

terraform import azurerm_spring_cloud_build_pack_binding.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/buildServices/buildService1/builders/builder1/buildPackBindings/binding1