-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathparam.fp
85 lines (70 loc) · 1.7 KB
/
param.fp
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
76
77
78
79
80
81
82
83
84
85
pipeline "simple_with_param" {
title = "Simple with Param"
param "notifier" {
default = "default"
}
param "name" {
default = "kenny"
}
param "list_of_names" {
default = ["kenny", "kyle", "stan", "cartman"]
}
param "map_of_names" {
default = {
kenny = "kenny"
kyle = "kyle"
stan = "stan"
cartman = "cartman"
}
}
param "map_of_complex_stuff" {
default = {
kenny = {
name = "kenny"
age = 10
}
kyle = {
name = "kyle"
age = 10
}
stan = {
name = "stan"
age = 10
}
cartman = {
name = "cartman"
age = 10
}
simple = "simple text"
}
}
step "transform" "echo" {
value = "Hello World: ${param.notifier} & ${param.name}"
output "echo_2" {
value = "echo 2"
}
}
step "transform" "echo_2" {
value = param.list_of_names
}
step "transform" "echo_3" {
depends_on = [step.transform.echo, step.transform.echo_2]
value = param.map_of_names
}
step "transform" "echo_4" {
depends_on = [step.transform.echo, step.transform.echo_2]
value = param.map_of_complex_stuff
}
output "val" {
value = step.transform.echo.value
}
output "val_2" {
value = step.transform.echo_2.value
}
output "val_3" {
value = step.transform.echo_3.value
}
output "val_4" {
value = step.transform.echo_4.value
}
}