-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathspec.schema.json
170 lines (170 loc) · 4.64 KB
/
spec.schema.json
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"os": {
"type": "object",
"description": "Additional packages and commands to run prior to terraform execution",
"properties": {
"packages": {
"type": "array",
"items": {
"type": "string"
},
"description": "list of apk packages to install at container execution time"
},
"commands": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of shell commands to run after packages are installed but before Terrafrom executes"
}
}
},
"workspace": {
"type": "string",
"default": "default",
"description": "The name of the Terraform workspace to run"
},
"google": {
"type": "object",
"description": "A mapping of Google account configuration.",
"properties": {
"connection": {
"type": "object",
"x-relay-connectionType": "gcp",
"description": "A Relay GCP connection to use",
"properties": {
"serviceAccountKey": {
"type": "string"
}
},
"required": [
"serviceAccountKey"
]
}
},
"required": [
"connection"
]
},
"aws": {
"type": "object",
"description": "A mapping of AWS account configuration.",
"properties": {
"connection": {
"type": "object",
"x-relay-connectionType": "aws",
"description": "A Relay AWS connection to use",
"properties": {
"accessKeyID": {
"type": "string",
"description": "Access Key ID"
},
"secretAccessKey": {
"type": "string",
"description": "Secret Access Key"
}
},
"required": [
"accessKeyID",
"secretAccessKey"
]
},
"region": {
"type": "string",
"description": "The AWS region to use (for example, us-west-2)"
}
},
"required": [
"connection",
"region"
]
},
"azure": {
"type": "object",
"description": "A mapping of Azure account configuration.",
"properties": {
"connection": {
"type": "object",
"x-relay-connectionType": "azure",
"description": "A Relay Azure connection to use",
"properties": {
"subscriptionID": {
"type": "string",
"description": "Azure Subscription ID"
},
"clientID": {
"type": "string",
"description": "Azure Service Principal client ID"
},
"tenantID": {
"type": "string",
"description": "Azure Service Principal tenant ID"
},
"secret": {
"type": "string",
"description": "Azure Service Principal secret"
}
},
"required": [
"subscriptionID",
"clientID",
"tenantID",
"secret"
]
}
},
"required": [
"connection"
]
},
"directory": {
"type": "string",
"description": "Subdirectory of the git repository containing the Terraform config root"
},
"backendConfig": {
"type": "object",
"description": "A map of backend configuration variables to be passed to terraform as -backend-config=key=value"
},
"git": {
"type": "object",
"description": "A git repository containing the terraform code to run",
"properties": {
"connection": {
"type": "object",
"x-relay-connectionType": "ssh",
"description": "A Relay SSH connection to use",
"properties": {
"sshKey": {
"type": "string",
"description": "The SSH key to use when cloning the git repository."
},
"knownHosts": {
"type": "string",
"description": "SSH known hosts file."
}
}
},
"name": {
"type": "string",
"description": "A directory name for the git clone."
},
"branch": {
"type": "string",
"description": "The Git branch to clone.",
"default": "master"
},
"repository": {
"type": "string",
"description": "The git repository URL."
}
},
"required": [
"name",
"repository"
]
}
}
}