This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
complex-blueprint.yaml
111 lines (104 loc) · 3.07 KB
/
complex-blueprint.yaml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: blueprints-complex-inputs
# yaml-language-server: $schema=https://raw.githubusercontent.com/Cloud-Schematics/vscode-blueprint-schema/master/blueprint_schema.json
## yaml-language-server: $schema=blueprint_schema.json
type: blueprint
schema_version: "1.0.0"
description: "Sample blueprint to demonstrate passing of complex Terraform variables"
inputs:
- name: resource_group
type: string
value: "24"
- name: region
type: string
- name: sample_var
type: string
- name: boolean_var
type: boolean
- name: list_any_flow_scalar
type: list(any)
- name: list_any_block_scalar
type: list(any)
- name: docker_ports
type: |
list(object({
internal = number
external = number
protocol = string
})
outputs:
- name: blueprint-output
value: $module.terraform_module2.outputs.nested_complex
settings:
- name: TF_VERSION
value: 1.0
modules:
- name: terraform_module1
module_type: terraform
source:
source_type: github
git:
git_repo_url: "https://github.com/Cloud-Schematics/blueprint-example-modules/tree/main/tf-inputs-outputs"
git_branch: "main"
inputs:
# default string
- name: TF_VERSION
value: 1.0
- name: sample_var
value: $blueprint.sample_var
# default string
- name: image_id
value: ami-image
# HCL type: list(any) passed as flow scalar double-quoted
- name: list_any_flow_scalar
value: $blueprint.list_any_flow_scalar
type: list(any)
# HCL type: list(any) passed as block scalar double-quoted
- name: list_any_block_scalar
value: $blueprint.list_any_block_scalar
type: list(any)
- name: docker_ports
value: $blueprint.docker_ports
type: |
list(object({
internal = number
external = number
protocol = string
})
outputs:
- name: nested_complex
- name: test_tuple
- name: terraform_module2
module_type: terraform
source:
source_type: github
git:
git_repo_url: "https://github.com/Cloud-Schematics/blueprint-example-modules/tree/main/tf-inputs-outputs"
git_branch: "main"
inputs:
# default string
- name: TF_VERSION
value: 1.0
- name: sample_var
value: $blueprint.sample_var
# default string
- name: image_id
value: ami-image
# HCL type: list(any) passed as flow scalar double-quoted
- name: list_any_flow_scalar
value: $blueprint.list_any_flow_scalar
type: list(any)
# HCL type: list(any) passed as block scalar double-quoted
- name: list_any_block_scalar
value: $blueprint.list_any_block_scalar
type: list(any)
- name: docker_ports
value: $module.terraform_module1.outputs.nested_complex
type: |
list(object({
internal = number
external = number
protocol = string
})
outputs:
- name: nested_complex
- name: test_tuple