azurerm_digital_twins_endpoint_eventgrid

Manages a Digital Twins Event Grid Endpoint.

Example Usage

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example_resources"
  location = "West Europe"
}

resource "azurerm_digital_twins_instance" "example" {
  name                = "example-DT"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

resource "azurerm_eventgrid_topic" "example" {
  name                = "example-topic"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_digital_twins_endpoint_eventgrid" "example" {
  name                                 = "example-EG"
  digital_twins_id                     = azurerm_digital_twins_instance.example.id
  eventgrid_topic_endpoint             = azurerm_eventgrid_topic.example.endpoint
  eventgrid_topic_primary_access_key   = azurerm_eventgrid_topic.example.primary_access_key
  eventgrid_topic_secondary_access_key = azurerm_eventgrid_topic.example.secondary_access_key
}

Arguments Reference

The following arguments are supported:

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

Digital Twins Eventgrid Endpoints can be imported using the resource id, e.g.

terraform import azurerm_digital_twins_endpoint_eventgrid.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/endpoints/ep1