-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.tf
More file actions
43 lines (35 loc) · 755 Bytes
/
example.tf
File metadata and controls
43 lines (35 loc) · 755 Bytes
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
provider "multiverse" {}
resource "multiverse_custom_resource" "test_node" {
executor = "node"
script = "example.js"
id_key = "ID"
data = <<JSON
{
"foo": "bar1",
"bar": "baz"
}
JSON
}
resource "multiverse_custom_resource" "test_bash" {
executor = "bash"
script = "example.sh"
id_key = "ID"
data = <<JSON
{
"foo": "bar3",
"bar": "baz"
}
JSON
}
output "test_node" {
value = multiverse_custom_resource.test_node
}
output "test_node_deep_json" {
value = jsondecode(multiverse_custom_resource.test_node.deep_object)
}
output "test_bash" {
value = multiverse_custom_resource.test_bash
}
output "test_bash_deep_json" {
value = jsondecode(multiverse_custom_resource.test_bash.deep_object)
}