-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
35 lines (29 loc) · 843 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
terraform {
required_providers {
kestra = {
source = "kestra-io/kestra"
version = "~> 0.18.2"
}
}
}
provider "kestra" {
url = "http://localhost:8080"
}
resource "kestra_flow" "flows" {
for_each = fileset(path.module, "flows/*/*.yml")
flow_id = yamldecode(templatefile(each.value, {}))["id"]
namespace = yamldecode(templatefile(each.value, {}))["namespace"]
content = templatefile(each.value, {})
}
resource "kestra_namespace_file" "data_gen" {
for_each = fileset(path.module, "code/data_gen.go")
namespace = "healthsynth.hospital"
filename = "/${each.value}"
content = file(each.value)
}
resource "kestra_namespace_file" "records_gen" {
for_each = fileset(path.module, "code/data_gen.go")
namespace = "healthsynth.records"
filename = "/${each.value}"
content = file(each.value)
}