Skip to content

azurermSpringCloudCustomizedAccelerator

Manages a Spring Cloud Customized Accelerator.

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",
    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 azurermSpringCloudAcceleratorExample =
  new azurerm.springCloudAccelerator.SpringCloudAccelerator(this, "example_3", {
    name: "default",
    spring_cloud_service_id: azurermSpringCloudServiceExample.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.*/
azurermSpringCloudAcceleratorExample.overrideLogicalId("example");
const azurermSpringCloudCustomizedAcceleratorExample =
  new azurerm.springCloudCustomizedAccelerator.SpringCloudCustomizedAccelerator(
    this,
    "example_4",
    {
      accelerator_tags: ["tag-a", "tag-b"],
      description: "example description",
      display_name: "example name",
      git_repository: [
        {
          git_tag: "spring.version.2.0.3",
          interval_in_seconds: 100,
          url: "https://github.com/Azure-Samples/piggymetrics",
        },
      ],
      icon_url:
        "https://images.freecreatives.com/wp-content/uploads/2015/05/smiley-559124_640.jpg",
      name: "example",
      spring_cloud_accelerator_id: azurermSpringCloudAcceleratorExample.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.*/
azurermSpringCloudCustomizedAcceleratorExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • gitRepository - (Required) A gitRepository block as defined below.

  • name - (Required) The name which should be used for this Spring Cloud Customized Accelerator. Changing this forces a new Spring Cloud Customized Accelerator to be created.

  • springCloudAcceleratorId - (Required) The ID of the Spring Cloud Accelerator. Changing this forces a new Spring Cloud Customized Accelerator to be created.


  • acceleratorTags - (Optional) Specifies a list of accelerator tags.

  • description - (Optional) Specifies the description of the Spring Cloud Customized Accelerator.

  • displayName - (Optional) Specifies the display name of the Spring Cloud Customized Accelerator..

  • iconUrl - (Optional) Specifies the icon URL of the Spring Cloud Customized Accelerator..


A gitRepository block supports the following:

  • url - (Required) Specifies Git repository URL for the accelerator.

  • basicAuth - (Optional) A basicAuth block as defined below. Conflicts with gitRepository0SshAuth. Changing this forces a new Spring Cloud Customized Accelerator to be created.

  • branch - (Optional) Specifies the Git repository branch to be used.

  • commit - (Optional) Specifies the Git repository commit to be used.

  • gitTag - (Optional) Specifies the Git repository tag to be used.

  • intervalInSeconds - (Optional) Specifies the interval for checking for updates to Git or image repository. It should be greater than 10.

  • sshAuth - (Optional) A sshAuth block as defined below. Conflicts with gitRepository0BasicAuth. Changing this forces a new Spring Cloud Customized Accelerator to be created.


A basicAuth block supports the following:

  • password - (Required) Specifies the password of git repository basic auth.

  • username - (Required) Specifies the username of git repository basic auth.


A sshAuth block supports the following:

  • privateKey - (Required) Specifies the Private SSH Key of git repository basic auth.

  • hostKey - (Optional) Specifies the Public SSH Key of git repository basic auth.

  • hostKeyAlgorithm - (Optional) Specifies the SSH Key algorithm of git repository basic auth.

Attributes Reference

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

  • id - The ID of the Spring Cloud Customized Accelerator.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the Spring Cloud Customized Accelerator.
  • read - (Defaults to 5 minutes) Used when retrieving the Spring Cloud Customized Accelerator.
  • update - (Defaults to 30 minutes) Used when updating the Spring Cloud Customized Accelerator.
  • delete - (Defaults to 30 minutes) Used when deleting the Spring Cloud Customized Accelerator.

Import

Spring Cloud Customized Accelerators can be imported using the resourceId, e.g.

terraform import azurerm_spring_cloud_customized_accelerator.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/Spring/spring1/applicationAccelerators/default/customizedAccelerators/customizedAccelerator1