Skip to content

Data Source: azurermContainerAppEnvironmentDaprComponent

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.*/
const dataAzurermContainerAppEnvironmentExample =
  new azurerm.dataAzurermContainerAppEnvironment.DataAzurermContainerAppEnvironment(
    this,
    "example",
    {
      name: "example-environment",
      resource_group_name: "example-resources",
    }
  );
const azurermContainerAppEnvironmentDaprComponentExample =
  new azurerm.containerAppEnvironmentDaprComponent.ContainerAppEnvironmentDaprComponent(
    this,
    "example_1",
    {
      container_app_environment_id:
        dataAzurermContainerAppEnvironmentExample.id,
      name: "example-component",
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermContainerAppEnvironmentDaprComponentExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) The name for this Dapr component. Changing this forces a new resource to be created.

  • containerAppEnvironmentId - (Required) The Container App Managed Environment ID to configure this Dapr component on. Changing this forces a new resource to be created.

Attributes Reference

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

  • id - The ID of the Container App Environment Dapr Component

  • ignoreErrors - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false

  • initTimeout - The component initialisation timeout in ISO8601 format. e.g. 5S, 2H, 1M. Defaults to 5S

  • metadata - A metadata block as detailed below.

  • scopes - A list of scopes to which this component applies. e.g. a Container App's daprAppId value.

  • secret - A secret block as detailed below.

  • type - The Dapr Component Type.

  • version - The version of the component.


A metadata block exports the following:

  • name - The name of the Metadata configuration item.

  • secretName - The name of a secret specified in the secrets block that contains the value for this metadata configuration item.

  • value - The value for this metadata configuration item.


A secret block exports the following:

  • name - The secret name.

  • value - The value for this secret.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Container App Environment Dapr Component.