azurermSpringCloudBuildPackBinding
Manages a Spring Cloud Build Pack Binding.
-> NOTE: This resource is applicable only for Spring Cloud Service with enterprise tier.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
features: [{}],
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermSpringCloudServiceExample =
new azurerm.springCloudService.SpringCloudService(this, "example_2", {
location: azurermResourceGroupExample.location,
name: "example-springcloud",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "E0",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermSpringCloudServiceExample.overrideLogicalId("example");
const azurermSpringCloudBuilderExample =
new azurerm.springCloudBuilder.SpringCloudBuilder(this, "example_3", {
build_pack_group: [
{
build_pack_ids: ["tanzu-Build Packs/java-azure"],
name: "mix",
},
],
name: "example",
spring_cloud_service_id: azurermSpringCloudServiceExample.id,
stack: [
{
id: "io.Build Packs.stacks.bionic",
version: "base",
},
],
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermSpringCloudBuilderExample.overrideLogicalId("example");
const azurermSpringCloudBuildPackBindingExample =
new azurerm.springCloudBuildPackBinding.SpringCloudBuildPackBinding(
this,
"example_4",
{
binding_type: "ApplicationInsights",
launch: [
{
properties: [
{
abc: "def",
"any-string": "any-string",
"sampling-rate": "12.0",
},
],
secrets: [
{
"connection-string":
"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX",
},
],
},
],
name: "example",
spring_cloud_builder_id: azurermSpringCloudBuilderExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermSpringCloudBuildPackBindingExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Spring Cloud Build Pack Binding. Changing this forces a new Spring Cloud Build Pack Binding to be created. -
springCloudBuilderId
- (Required) The ID of the Spring Cloud Builder. Changing this forces a new Spring Cloud Build Pack Binding to be created.
-
bindingType
- (Optional) Specifies the Build Pack Binding Type. Allowed values areapacheSkyWalking
,appDynamics
,applicationInsights
,dynatrace
,elasticApm
andnewRelic
. -
launch
- (Optional) Alaunch
block as defined below.
A launch
block supports the following:
-
properties
- (Optional) Specifies a map of non-sensitive properties for launchProperties. -
secrets
- (Optional) Specifies a map of sensitive properties for launchProperties.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Spring Cloud Build Pack Binding.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Spring Cloud Build Pack Binding.read
- (Defaults to 5 minutes) Used when retrieving the Spring Cloud Build Pack Binding.update
- (Defaults to 30 minutes) Used when updating the Spring Cloud Build Pack Binding.delete
- (Defaults to 30 minutes) Used when deleting the Spring Cloud Build Pack Binding.
Import
Spring Cloud Build Pack Bindings can be imported using the resourceId
, e.g.