Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
Signed-off-by: SpiritZhou <[email protected]>
  • Loading branch information
SpiritZhou committed Mar 18, 2024
1 parent ed2c9f6 commit 9e7d091
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ module "azure_servicebus_namespace_event_grid" {
}

module "azurerm_eventgrid_topic" {
source = "./modules/azure/event-grid"
resource_group_name = var.azure_resource_group_name
unique_project_name = var.unique_project_name
source = "./modules/azure/event-grid"
resource_group_name = var.azure_resource_group_name
unique_project_name = var.unique_project_name
service_bus_topic_id = module.azure_servicebus_namespace_event_grid.event_grid_receive_topic_id

tags = local.tags
Expand Down
8 changes: 4 additions & 4 deletions terraform/modules/azure/event-grid/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider "azurerm" {
}

locals {
event_grid_name = "${var.unique_project_name}-e2e-event-grid"
event_grid_name = "${var.unique_project_name}-e2e-event-grid"
event_grid_subscription_name = "${var.unique_project_name}-e2e-event-grid-subscription"
}

Expand All @@ -16,14 +16,14 @@ resource "azurerm_eventgrid_topic" "eventgrid" {
name = local.event_grid_name
location = data.azurerm_resource_group.rg.location
resource_group_name = data.azurerm_resource_group.rg.name
input_schema = "CloudEventSchemaV1_0"
input_schema = "CloudEventSchemaV1_0"

tags = var.tags
}

resource "azurerm_eventgrid_event_subscription" "eventsubscription" {
name = local.event_grid_subscription_name
scope = azurerm_eventgrid_topic.eventgrid.id
name = local.event_grid_subscription_name
scope = azurerm_eventgrid_topic.eventgrid.id
event_delivery_schema = "CloudEventSchemaV1_0"

service_bus_topic_endpoint_id = var.service_bus_topic_id
Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/azure/service-bus/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ provider "azurerm" {
locals {
service_bus_namespace_name = "${var.unique_project_name}-e2e-servicebus-namespace${var.service_bus_suffix}"
service_bus_authorization_rule = "${var.unique_project_name}-e2e-manage"
service_bus_topic_name = "${var.unique_project_name}-e2e-receive-event-grid-topic"
service_bus_topic_name = "${var.unique_project_name}-e2e-receive-event-grid-topic"
}

data "azurerm_resource_group" "rg" {
Expand Down

0 comments on commit 9e7d091

Please sign in to comment.