-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.tf
39 lines (32 loc) · 826 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.0.0"
}
}
}
# Microsoft Azure Provider
provider "azurerm" {
features {}
}
# Azure
resource "azurerm_resource_group" "k3d" {
name = "k3d-dapr-example"
location = "West Europe"
}
resource "azurerm_servicebus_namespace" "k3d" {
name = "k3d-dapr-example"
location = azurerm_resource_group.k3d.location
resource_group_name = azurerm_resource_group.k3d.name
sku = "Standard"
tags = {
source = "terraform"
}
}
# # Secrets for Kubernetes Cluster
output "service_bus_conn" {
description = "Connection string for Azure Service Bus Namespace"
value = azurerm_servicebus_namespace.k3d.default_primary_connection_string
sensitive = true
}