Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created July 4, 2021 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/06a37c2b01aed0c1a7f54bef8d2d404b to your computer and use it in GitHub Desktop.
Save xximjasonxx/06a37c2b01aed0c1a7f54bef8d2d404b to your computer and use it in GitHub Desktop.
resource "azurerm_eventgrid_topic" "this" {
name = "eg-topic-${var.name}jx01"
resource_group_name = var.rg_name
location = var.rg_location
input_schema = "EventGridSchema"
public_network_access_enabled = false
}
output "eventgrid_topic_id" {
value = azurerm_eventgrid_topic.this.id
}
output "event_grid_topic_name" {
value = azurerm_eventgrid_topic.this.name
}
output "eventgrid_topic_endpoint" {
value = azurerm_eventgrid_topic.this.endpoint
}
output "eventgrid_topic_access_key" {
value = azurerm_eventgrid_topic.this.primary_access_key
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment