@goldstack/infra-aws 0.3.29 → 0.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/infraAws.d.ts +17 -17
- package/dist/src/infraAws.js +191 -191
- package/dist/src/infraAws.spec.d.ts +1 -1
- package/dist/src/infraAws.spec.js +34 -34
- package/dist/src/schemas/accountConfigSchema.json +207 -207
- package/dist/src/schemas/awsTerraformStateSchema.json +57 -57
- package/dist/src/schemas/deploymentConfigSchema.json +73 -73
- package/dist/src/types/awsAccount.d.ts +112 -112
- package/dist/src/types/awsAccount.js +2 -2
- package/dist/src/types/awsDeployment.d.ts +17 -17
- package/dist/src/types/awsDeployment.js +2 -2
- package/dist/src/types/awsTerraformState.d.ts +24 -24
- package/dist/src/types/awsTerraformState.js +2 -2
- package/package.json +2 -2
|
@@ -1,207 +1,207 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/AWSConfiguration",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"AWSAPIKeyUserConfig": {
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"description": "User accessing AWS using an access key id and secret access key. Only recommended for users used during development. The provided credentials will be included in the downloaded package but by default will not be committed to git.",
|
|
8
|
-
"properties": {
|
|
9
|
-
"awsAccessKeyId": {
|
|
10
|
-
"$ref": "#/definitions/AWSAccessKeyId"
|
|
11
|
-
},
|
|
12
|
-
"awsDefaultRegion": {
|
|
13
|
-
"$ref": "#/definitions/AWSRegion"
|
|
14
|
-
},
|
|
15
|
-
"awsSecretAccessKey": {
|
|
16
|
-
"$ref": "#/definitions/AWSSecretAccessKey"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"required": [
|
|
20
|
-
"awsDefaultRegion"
|
|
21
|
-
],
|
|
22
|
-
"title": "AWS API Key User Configuration",
|
|
23
|
-
"type": "object"
|
|
24
|
-
},
|
|
25
|
-
"AWSAccessKeyId": {
|
|
26
|
-
"description": "Access key for this user.",
|
|
27
|
-
"pattern": "^[^\\s]*$",
|
|
28
|
-
"title": "AWS Access Key Id",
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"AWSAccessKeyIdVariableName": {
|
|
32
|
-
"description": "Name of environment variable for AWS Access Key Id. When in doubt, use AWS_ACCESS_KEY_ID.",
|
|
33
|
-
"pattern": "^[^\\s]*$",
|
|
34
|
-
"title": "AWS Access Key Id Variable Name",
|
|
35
|
-
"type": "string"
|
|
36
|
-
},
|
|
37
|
-
"AWSConfiguration": {
|
|
38
|
-
"additionalProperties": false,
|
|
39
|
-
"description": "Global configuration for deploying to AWS.",
|
|
40
|
-
"properties": {
|
|
41
|
-
"users": {
|
|
42
|
-
"$ref": "#/definitions/AWSUsers"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"required": [
|
|
46
|
-
"users"
|
|
47
|
-
],
|
|
48
|
-
"title": "AWS Configuration",
|
|
49
|
-
"type": "object"
|
|
50
|
-
},
|
|
51
|
-
"AWSDefaultRegionVariableName": {
|
|
52
|
-
"description": "Name of environment variable for AWS Default Region. When in doubt, use AWS_DEFAULT_REGION.",
|
|
53
|
-
"pattern": "^[^\\s]*$",
|
|
54
|
-
"title": "AWS Default Region Varialbe Name",
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
"AWSDeploymentRegion": {
|
|
58
|
-
"description": "AWS region that infrastructure should be deployed to.",
|
|
59
|
-
"enum": [
|
|
60
|
-
"us-east-1",
|
|
61
|
-
"us-east-2",
|
|
62
|
-
"us-west-1",
|
|
63
|
-
"us-west-2",
|
|
64
|
-
"af-south-1",
|
|
65
|
-
"ap-east-1",
|
|
66
|
-
"ap-south-1",
|
|
67
|
-
"ap-northeast-3",
|
|
68
|
-
"ap-northeast-2",
|
|
69
|
-
"ap-southeast-1",
|
|
70
|
-
"ap-southeast-2",
|
|
71
|
-
"ap-northeast-1",
|
|
72
|
-
"ca-central-1",
|
|
73
|
-
"eu-central-1",
|
|
74
|
-
"eu-west-1",
|
|
75
|
-
"eu-west-2",
|
|
76
|
-
"eu-south-1",
|
|
77
|
-
"eu-west-3",
|
|
78
|
-
"eu-north-1",
|
|
79
|
-
"me-south-1",
|
|
80
|
-
"sa-east-1"
|
|
81
|
-
],
|
|
82
|
-
"title": "AWS Deployment Region",
|
|
83
|
-
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
"AWSEnvironmentVariableUserConfig": {
|
|
86
|
-
"additionalProperties": false,
|
|
87
|
-
"description": "Obtain AWS user from environment variables. This will be useful for CI/CD.",
|
|
88
|
-
"properties": {
|
|
89
|
-
"awsAccessKeyIdVariableName": {
|
|
90
|
-
"$ref": "#/definitions/AWSAccessKeyIdVariableName"
|
|
91
|
-
},
|
|
92
|
-
"awsDefaultRegionVariableName": {
|
|
93
|
-
"$ref": "#/definitions/AWSDefaultRegionVariableName"
|
|
94
|
-
},
|
|
95
|
-
"awsSecretAccessKeyVariableName": {
|
|
96
|
-
"$ref": "#/definitions/AWSSecretAccessKeyVariableName"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"required": [
|
|
100
|
-
"awsAccessKeyIdVariableName",
|
|
101
|
-
"awsSecretAccessKeyVariableName",
|
|
102
|
-
"awsDefaultRegionVariableName"
|
|
103
|
-
],
|
|
104
|
-
"title": "AWS Environment Variable User Configuration",
|
|
105
|
-
"type": "object"
|
|
106
|
-
},
|
|
107
|
-
"AWSProfileConfig": {
|
|
108
|
-
"additionalProperties": false,
|
|
109
|
-
"description": "User that is configured using the aws cli. Useful for development environments.",
|
|
110
|
-
"properties": {
|
|
111
|
-
"awsDefaultRegion": {
|
|
112
|
-
"$ref": "#/definitions/AWSRegion"
|
|
113
|
-
},
|
|
114
|
-
"profile": {
|
|
115
|
-
"$ref": "#/definitions/Profile"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"required": [
|
|
119
|
-
"profile",
|
|
120
|
-
"awsDefaultRegion"
|
|
121
|
-
],
|
|
122
|
-
"title": "AWS Local User Configuration",
|
|
123
|
-
"type": "object"
|
|
124
|
-
},
|
|
125
|
-
"AWSRegion": {
|
|
126
|
-
"$ref": "#/definitions/AWSDeploymentRegion",
|
|
127
|
-
"description": "Default AWS region to use.",
|
|
128
|
-
"pattern": "^[^\\s]*$",
|
|
129
|
-
"title": "AWS Region"
|
|
130
|
-
},
|
|
131
|
-
"AWSSecretAccessKey": {
|
|
132
|
-
"description": "Secret key for this user.",
|
|
133
|
-
"pattern": "^[^\\s]*$",
|
|
134
|
-
"title": "AWS Secret Access Key",
|
|
135
|
-
"type": "string"
|
|
136
|
-
},
|
|
137
|
-
"AWSSecretAccessKeyVariableName": {
|
|
138
|
-
"description": "Name of environment variable for AWS Secret Access Key. When in doubt, use AWS_SECRET_ACCESS_KEY.",
|
|
139
|
-
"pattern": "^[^\\s]*$",
|
|
140
|
-
"title": "AWS Secret Access Key Variable Name",
|
|
141
|
-
"type": "string"
|
|
142
|
-
},
|
|
143
|
-
"AWSUser": {
|
|
144
|
-
"additionalProperties": false,
|
|
145
|
-
"description": "AWS user",
|
|
146
|
-
"properties": {
|
|
147
|
-
"config": {
|
|
148
|
-
"$ref": "#/definitions/AwsUserConfig"
|
|
149
|
-
},
|
|
150
|
-
"name": {
|
|
151
|
-
"$ref": "#/definitions/Name"
|
|
152
|
-
},
|
|
153
|
-
"type": {
|
|
154
|
-
"$ref": "#/definitions/Type"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"required": [
|
|
158
|
-
"name",
|
|
159
|
-
"type",
|
|
160
|
-
"config"
|
|
161
|
-
],
|
|
162
|
-
"title": "AWS User",
|
|
163
|
-
"type": "object"
|
|
164
|
-
},
|
|
165
|
-
"AWSUsers": {
|
|
166
|
-
"items": {
|
|
167
|
-
"$ref": "#/definitions/AWSUser"
|
|
168
|
-
},
|
|
169
|
-
"type": "array"
|
|
170
|
-
},
|
|
171
|
-
"AwsUserConfig": {
|
|
172
|
-
"anyOf": [
|
|
173
|
-
{
|
|
174
|
-
"$ref": "#/definitions/AWSProfileConfig"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"$ref": "#/definitions/AWSEnvironmentVariableUserConfig"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"$ref": "#/definitions/AWSAPIKeyUserConfig"
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
"Name": {
|
|
185
|
-
"description": "Identifier for this user. No spaces allowed.",
|
|
186
|
-
"pattern": "^[^\\s]*$",
|
|
187
|
-
"title": "Name",
|
|
188
|
-
"type": "string"
|
|
189
|
-
},
|
|
190
|
-
"Profile": {
|
|
191
|
-
"description": "Profile name of the user configured with the aws cli. When in doubt, use `default`.",
|
|
192
|
-
"pattern": "^[^\\s]*$",
|
|
193
|
-
"title": "Profile",
|
|
194
|
-
"type": "string"
|
|
195
|
-
},
|
|
196
|
-
"Type": {
|
|
197
|
-
"description": "Type of this user.",
|
|
198
|
-
"enum": [
|
|
199
|
-
"apiKey",
|
|
200
|
-
"profile",
|
|
201
|
-
"environmentVariables"
|
|
202
|
-
],
|
|
203
|
-
"title": "Type",
|
|
204
|
-
"type": "string"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/AWSConfiguration",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AWSAPIKeyUserConfig": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"description": "User accessing AWS using an access key id and secret access key. Only recommended for users used during development. The provided credentials will be included in the downloaded package but by default will not be committed to git.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"awsAccessKeyId": {
|
|
10
|
+
"$ref": "#/definitions/AWSAccessKeyId"
|
|
11
|
+
},
|
|
12
|
+
"awsDefaultRegion": {
|
|
13
|
+
"$ref": "#/definitions/AWSRegion"
|
|
14
|
+
},
|
|
15
|
+
"awsSecretAccessKey": {
|
|
16
|
+
"$ref": "#/definitions/AWSSecretAccessKey"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"awsDefaultRegion"
|
|
21
|
+
],
|
|
22
|
+
"title": "AWS API Key User Configuration",
|
|
23
|
+
"type": "object"
|
|
24
|
+
},
|
|
25
|
+
"AWSAccessKeyId": {
|
|
26
|
+
"description": "Access key for this user.",
|
|
27
|
+
"pattern": "^[^\\s]*$",
|
|
28
|
+
"title": "AWS Access Key Id",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"AWSAccessKeyIdVariableName": {
|
|
32
|
+
"description": "Name of environment variable for AWS Access Key Id. When in doubt, use AWS_ACCESS_KEY_ID.",
|
|
33
|
+
"pattern": "^[^\\s]*$",
|
|
34
|
+
"title": "AWS Access Key Id Variable Name",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"AWSConfiguration": {
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"description": "Global configuration for deploying to AWS.",
|
|
40
|
+
"properties": {
|
|
41
|
+
"users": {
|
|
42
|
+
"$ref": "#/definitions/AWSUsers"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"users"
|
|
47
|
+
],
|
|
48
|
+
"title": "AWS Configuration",
|
|
49
|
+
"type": "object"
|
|
50
|
+
},
|
|
51
|
+
"AWSDefaultRegionVariableName": {
|
|
52
|
+
"description": "Name of environment variable for AWS Default Region. When in doubt, use AWS_DEFAULT_REGION.",
|
|
53
|
+
"pattern": "^[^\\s]*$",
|
|
54
|
+
"title": "AWS Default Region Varialbe Name",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"AWSDeploymentRegion": {
|
|
58
|
+
"description": "AWS region that infrastructure should be deployed to.",
|
|
59
|
+
"enum": [
|
|
60
|
+
"us-east-1",
|
|
61
|
+
"us-east-2",
|
|
62
|
+
"us-west-1",
|
|
63
|
+
"us-west-2",
|
|
64
|
+
"af-south-1",
|
|
65
|
+
"ap-east-1",
|
|
66
|
+
"ap-south-1",
|
|
67
|
+
"ap-northeast-3",
|
|
68
|
+
"ap-northeast-2",
|
|
69
|
+
"ap-southeast-1",
|
|
70
|
+
"ap-southeast-2",
|
|
71
|
+
"ap-northeast-1",
|
|
72
|
+
"ca-central-1",
|
|
73
|
+
"eu-central-1",
|
|
74
|
+
"eu-west-1",
|
|
75
|
+
"eu-west-2",
|
|
76
|
+
"eu-south-1",
|
|
77
|
+
"eu-west-3",
|
|
78
|
+
"eu-north-1",
|
|
79
|
+
"me-south-1",
|
|
80
|
+
"sa-east-1"
|
|
81
|
+
],
|
|
82
|
+
"title": "AWS Deployment Region",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"AWSEnvironmentVariableUserConfig": {
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"description": "Obtain AWS user from environment variables. This will be useful for CI/CD.",
|
|
88
|
+
"properties": {
|
|
89
|
+
"awsAccessKeyIdVariableName": {
|
|
90
|
+
"$ref": "#/definitions/AWSAccessKeyIdVariableName"
|
|
91
|
+
},
|
|
92
|
+
"awsDefaultRegionVariableName": {
|
|
93
|
+
"$ref": "#/definitions/AWSDefaultRegionVariableName"
|
|
94
|
+
},
|
|
95
|
+
"awsSecretAccessKeyVariableName": {
|
|
96
|
+
"$ref": "#/definitions/AWSSecretAccessKeyVariableName"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"awsAccessKeyIdVariableName",
|
|
101
|
+
"awsSecretAccessKeyVariableName",
|
|
102
|
+
"awsDefaultRegionVariableName"
|
|
103
|
+
],
|
|
104
|
+
"title": "AWS Environment Variable User Configuration",
|
|
105
|
+
"type": "object"
|
|
106
|
+
},
|
|
107
|
+
"AWSProfileConfig": {
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"description": "User that is configured using the aws cli. Useful for development environments.",
|
|
110
|
+
"properties": {
|
|
111
|
+
"awsDefaultRegion": {
|
|
112
|
+
"$ref": "#/definitions/AWSRegion"
|
|
113
|
+
},
|
|
114
|
+
"profile": {
|
|
115
|
+
"$ref": "#/definitions/Profile"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": [
|
|
119
|
+
"profile",
|
|
120
|
+
"awsDefaultRegion"
|
|
121
|
+
],
|
|
122
|
+
"title": "AWS Local User Configuration",
|
|
123
|
+
"type": "object"
|
|
124
|
+
},
|
|
125
|
+
"AWSRegion": {
|
|
126
|
+
"$ref": "#/definitions/AWSDeploymentRegion",
|
|
127
|
+
"description": "Default AWS region to use.",
|
|
128
|
+
"pattern": "^[^\\s]*$",
|
|
129
|
+
"title": "AWS Region"
|
|
130
|
+
},
|
|
131
|
+
"AWSSecretAccessKey": {
|
|
132
|
+
"description": "Secret key for this user.",
|
|
133
|
+
"pattern": "^[^\\s]*$",
|
|
134
|
+
"title": "AWS Secret Access Key",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"AWSSecretAccessKeyVariableName": {
|
|
138
|
+
"description": "Name of environment variable for AWS Secret Access Key. When in doubt, use AWS_SECRET_ACCESS_KEY.",
|
|
139
|
+
"pattern": "^[^\\s]*$",
|
|
140
|
+
"title": "AWS Secret Access Key Variable Name",
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"AWSUser": {
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"description": "AWS user",
|
|
146
|
+
"properties": {
|
|
147
|
+
"config": {
|
|
148
|
+
"$ref": "#/definitions/AwsUserConfig"
|
|
149
|
+
},
|
|
150
|
+
"name": {
|
|
151
|
+
"$ref": "#/definitions/Name"
|
|
152
|
+
},
|
|
153
|
+
"type": {
|
|
154
|
+
"$ref": "#/definitions/Type"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"name",
|
|
159
|
+
"type",
|
|
160
|
+
"config"
|
|
161
|
+
],
|
|
162
|
+
"title": "AWS User",
|
|
163
|
+
"type": "object"
|
|
164
|
+
},
|
|
165
|
+
"AWSUsers": {
|
|
166
|
+
"items": {
|
|
167
|
+
"$ref": "#/definitions/AWSUser"
|
|
168
|
+
},
|
|
169
|
+
"type": "array"
|
|
170
|
+
},
|
|
171
|
+
"AwsUserConfig": {
|
|
172
|
+
"anyOf": [
|
|
173
|
+
{
|
|
174
|
+
"$ref": "#/definitions/AWSProfileConfig"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"$ref": "#/definitions/AWSEnvironmentVariableUserConfig"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"$ref": "#/definitions/AWSAPIKeyUserConfig"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"Name": {
|
|
185
|
+
"description": "Identifier for this user. No spaces allowed.",
|
|
186
|
+
"pattern": "^[^\\s]*$",
|
|
187
|
+
"title": "Name",
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"Profile": {
|
|
191
|
+
"description": "Profile name of the user configured with the aws cli. When in doubt, use `default`.",
|
|
192
|
+
"pattern": "^[^\\s]*$",
|
|
193
|
+
"title": "Profile",
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"Type": {
|
|
197
|
+
"description": "Type of this user.",
|
|
198
|
+
"enum": [
|
|
199
|
+
"apiKey",
|
|
200
|
+
"profile",
|
|
201
|
+
"environmentVariables"
|
|
202
|
+
],
|
|
203
|
+
"title": "Type",
|
|
204
|
+
"type": "string"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/AWSTerraformState",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"AWSTerraformState": {
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"remoteState": {
|
|
9
|
-
"items": {
|
|
10
|
-
"$ref": "#/definitions/RemoteState"
|
|
11
|
-
},
|
|
12
|
-
"type": "array"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"remoteState"
|
|
17
|
-
],
|
|
18
|
-
"type": "object"
|
|
19
|
-
},
|
|
20
|
-
"Name": {
|
|
21
|
-
"description": "Identifier for this user. No spaces allowed.",
|
|
22
|
-
"pattern": "^[^\\s]*$",
|
|
23
|
-
"title": "Name",
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"RemoteState": {
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"properties": {
|
|
29
|
-
"terraformStateBucket": {
|
|
30
|
-
"$ref": "#/definitions/TerraformStateBucket"
|
|
31
|
-
},
|
|
32
|
-
"terraformStateDynamoDBTable": {
|
|
33
|
-
"$ref": "#/definitions/TerraformDynamoDBTable"
|
|
34
|
-
},
|
|
35
|
-
"user": {
|
|
36
|
-
"$ref": "#/definitions/Name"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"required": [
|
|
40
|
-
"user"
|
|
41
|
-
],
|
|
42
|
-
"type": "object"
|
|
43
|
-
},
|
|
44
|
-
"TerraformDynamoDBTable": {
|
|
45
|
-
"description": "The name of the DynamoDB table used for Terraform state locking. If not provided, will be auto-generated on first deployment.",
|
|
46
|
-
"pattern": "^[^\\s]*$",
|
|
47
|
-
"title": "Terraform DynamoDB Table",
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
"TerraformStateBucket": {
|
|
51
|
-
"description": "The name of the bucket where the Terraform state for the packages will be stored. If not provided, will be auto-generated on first deployment.",
|
|
52
|
-
"pattern": "^[^\\s]*$",
|
|
53
|
-
"title": "Terraform State Bucket",
|
|
54
|
-
"type": "string"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/AWSTerraformState",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AWSTerraformState": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"remoteState": {
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#/definitions/RemoteState"
|
|
11
|
+
},
|
|
12
|
+
"type": "array"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"remoteState"
|
|
17
|
+
],
|
|
18
|
+
"type": "object"
|
|
19
|
+
},
|
|
20
|
+
"Name": {
|
|
21
|
+
"description": "Identifier for this user. No spaces allowed.",
|
|
22
|
+
"pattern": "^[^\\s]*$",
|
|
23
|
+
"title": "Name",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"RemoteState": {
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"properties": {
|
|
29
|
+
"terraformStateBucket": {
|
|
30
|
+
"$ref": "#/definitions/TerraformStateBucket"
|
|
31
|
+
},
|
|
32
|
+
"terraformStateDynamoDBTable": {
|
|
33
|
+
"$ref": "#/definitions/TerraformDynamoDBTable"
|
|
34
|
+
},
|
|
35
|
+
"user": {
|
|
36
|
+
"$ref": "#/definitions/Name"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"user"
|
|
41
|
+
],
|
|
42
|
+
"type": "object"
|
|
43
|
+
},
|
|
44
|
+
"TerraformDynamoDBTable": {
|
|
45
|
+
"description": "The name of the DynamoDB table used for Terraform state locking. If not provided, will be auto-generated on first deployment.",
|
|
46
|
+
"pattern": "^[^\\s]*$",
|
|
47
|
+
"title": "Terraform DynamoDB Table",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"TerraformStateBucket": {
|
|
51
|
+
"description": "The name of the bucket where the Terraform state for the packages will be stored. If not provided, will be auto-generated on first deployment.",
|
|
52
|
+
"pattern": "^[^\\s]*$",
|
|
53
|
+
"title": "Terraform State Bucket",
|
|
54
|
+
"type": "string"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|