-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.tf
75 lines (74 loc) · 1.63 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module "microservice" {
source = "../../"
#source = "Matthewsre/microservices/azurerm"
service_name = "serv2"
regions = ["westus2", "eastus2"]
environment = "dev"
appservice_deployment_slots = ["staging"]
microservices = [
{
name = "cosm1"
appservice = "plan"
function = "plan"
sql = "elastic"
roles = ["Admin", "Support"]
http = {
target = "appservice"
consumers = []
},
queues = [
{
name = "queue1"
publishers = ["cosm1", "basic"]
}
]
cosmos_containers = [
{
name = "container1"
partition_key_path = "/PartitionKey"
max_throughput = 0
},
{
name = "container2"
partition_key_path = "/PartitionKey"
max_throughput = 0
}
]
},
{
name = "confun"
appservice = "plan"
function = "consumption"
sql = "elastic"
},
{
name = "basic"
appservice = "plan"
function = "plan"
sql = "elastic"
},
{
name = "cosm2"
appservice = "plan"
cosmos_containers = [
{
name = "container3"
partition_key_path = "/PartitionKey"
max_throughput = 0
}
]
},
{
name = "funp"
function = "plan"
},
{
name = "func"
function = "consumption"
},
{
name = "apponly"
appservice = "plan"
}
]
}