forked from cloudfoundry/csb-brokerpak-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-postgresql.yml
375 lines (375 loc) · 14.2 KB
/
aws-postgresql.yml
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
# Copyright 2018 the Service Broker Project Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
version: 1
name: csb-aws-postgresql
id: fa6334bc-5314-4b63-8a74-c0e4b638c950
description: CSB Amazon RDS for PostgreSQL
display_name: CSB Amazon RDS for PostgreSQL
image_url: file://service-images/csb.png
documentation_url: https://docs.vmware.com/en/Tanzu-Cloud-Service-Broker-for-AWS/1.2/csb-aws/GUID-reference-aws-postgres.html
provider_display_name: VMware
support_url: https://aws.amazon.com/rds/postgresql/
tags: [aws, postgresql, postgres]
plan_updateable: true
provision:
plan_inputs:
- field_name: cores
type: integer
details: Deprecated - Minimum number of cores for service instance. Suggest setting `instance_class` property instead.
constraints:
maximum: 64
minimum: 2
multipleOf: 2
- field_name: postgres_version
required: true
type: string
details: The version for the PostgreSQL instance. Can be any supported major or major and minor version.
- field_name: storage_gb
required: true
type: number
details: Size of storage volume for service instance.
constraints:
maximum: 4096
minimum: 5
user_inputs:
- field_name: storage_type
type: string
details: Type of storage to be used. One of "standard" (magnetic), "gp2" (general purpose SSD), or "io1" (provisioned IOPS SSD).
default: "io1"
- field_name: iops
type: number
details: The amount of provisioned IOPS. In order for this property to take effect, `storage_type` must be set to `io1`.
default: 3000
- field_name: require_ssl
type: boolean
details: Require that connections use SSL. Note that if "parameter_group_name" is specified then the "require_ssl" parameter will not take effect.
default: false
- field_name: provider_verify_certificate
type: boolean
details: Whether PostgreSQL Terraform provider should validate the server certificate. The AWS certificate bundle must be installed.
default: true
- field_name: storage_autoscale
type: boolean
default: false
details: Enable storage autoscaling up to storage_autoscale_limit_gb if true
- field_name: storage_autoscale_limit_gb
type: number
details: Max storage size if storage_autoscale is true
default: 0
- field_name: storage_encrypted
type: boolean
default: false
details: Enable encrypted storage
prohibit_update: true
- field_name: kms_key_id
type: string
default: ""
details: |
The ARN for the KMS encryption key (see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Encryption.html)
The `storage_encrypted` property must be enabled if the key is specified.
prohibit_update: true
- field_name: parameter_group_name
type: string
default: ""
details: |
DB parameter group name. If not set, a parameter group is created for the instance.
Updates to this property may not occur until the next maintenance period.
This property should not be introduced during an instance update as it will fail.
- field_name: instance_name
type: string
details: Name for your PostgreSQL instance
default: csb-postgresql-${request.instance_id}
constraints:
maxLength: 98
minLength: 6
pattern: ^[a-z][a-z0-9-]+$
prohibit_update: true
- field_name: db_name
type: string
details: Name for your database
default: vsbdb
constraints:
maxLength: 64
prohibit_update: true
- field_name: publicly_accessible
type: boolean
details: Make instance public if true
default: false
- field_name: region
type: string
details: The region of AWS.
default: us-west-2
constraints:
examples:
- us-central1
- asia-northeast1
pattern: ^[a-z][a-z0-9-]+$
prohibit_update: true
- field_name: multi_az
type: boolean
details: Make instance multi AZ if true (see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html)
default: false
- field_name: aws_access_key_id
type: string
details: AWS access key
default: ${config("aws.access_key_id")}
- field_name: aws_secret_access_key
type: string
details: AWS secret key
default: ${config("aws.secret_access_key")}
- field_name: aws_vpc_id
details: VPC ID for instance
default: ""
- field_name: instance_class
type: string
details: AWS DB instance class (see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
default: ""
- field_name: rds_subnet_group
type: string
details: AWS RDS subnet group already in existence to use
default: ""
- field_name: rds_vpc_security_group_ids
type: string
details: Comma delimited list of security group ID's for instance
default: ""
prohibit_update: true
- field_name: allow_major_version_upgrade
type: boolean
details: Allow major version upgrades. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
default: true
- field_name: auto_minor_version_upgrade
type: boolean
details: Allow minor version upgrades automatically during the maintenance window
default: true
- <<: &nullable_string
type: string
default: null
nullable: true
field_name: maintenance_day
details: The preferred maintenance day
enum:
Sun: Sunday
Mon: Monday
Tue: Tuesday
Wed: Wednesday
Thu: Thursday
Fri: Friday
Sat: Saturday
- <<: *nullable_string
field_name: maintenance_start_hour
details: The preferred maintenance start hour
enum: &hour_enum
"00": 12 am
"01": 1 am
"02": 2 am
"03": 3 am
"04": 4 am
"05": 5 am
"06": 6 am
"07": 7 am
"08": 8 am
"09": 9 am
"10": 10 am
"11": 11 am
"12": 12 pm
"13": 1 pm
"14": 2 pm
"15": 3 pm
"16": 4 pm
"17": 5 pm
"18": 6 pm
"19": 7 pm
"20": 8 pm
"21": 9 pm
"22": 10 pm
"23": 11 pm
- <<: *nullable_string
field_name: maintenance_start_min
details: The preferred maintenance start minute
enum: &minute_enum
"00": Top of the hour
"15": 15 minutes
"30": 30 minutes
"45": 45 minutes
- <<: *nullable_string
field_name: maintenance_end_hour
details: The preferred maintenance end hour
enum: *hour_enum
- <<: *nullable_string
field_name: maintenance_end_min
details: The preferred maintenance end minute
enum: *minute_enum
- field_name: deletion_protection
type: boolean
details: Whether deletion protection is enabled. The database cannot be deleted when this value is set.
default: false
- field_name: backup_retention_period
type: number
details: The number of days (1-35) for which automatic backups are kept. Set the value to 0 to disable automated backups. An outage occurs if you change the backup retention period from 0 to a nonzero value or vice versa. This applies to both Single-AZ and Multi-AZ DB instances.
default: 7
- <<: *nullable_string
field_name: backup_window
details: 'The daily time range in UTC during which automated backups are created, e.g.: "09:46-10:16". Must not overlap with the maintenance window. If not set, uses the default for the region (see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow)'
- field_name: delete_automated_backups
type: boolean
details: Specifies whether to remove automated backups immediately after the DB instance is deleted
default: true
- field_name: copy_tags_to_snapshot
type: boolean
details: Copy all instance tags to snapshots
default: true
- field_name: monitoring_interval
type: number
details: |
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.
To disable collecting Enhanced Monitoring metrics, specify 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
A `monitoring_role_arn` value is required if you specify a `monitoring_interval` value other than 0.
To read about Enhanced Monitoring metrics see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.overview.html.
default: 0
constraints:
maximum: 60
minimum: 0
- field_name: monitoring_role_arn
type: string
details: |
Enhanced Monitoring requires permission to act on your behalf to send OS metric information to CloudWatch Logs.
This property represents the ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs.
To read about setting up and enabling Enhanced Monitoring see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.Enabling.html.
default: ""
- field_name: performance_insights_enabled
type: boolean
details: Specifies whether Performance Insights are enabled (see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.Overview.html).
default: false
- field_name: performance_insights_kms_key_id
type: string
details: |
The ARN for the KMS key to encrypt Performance Insights data.
When specifying `performance_insights_kms_key_id`, `performance_insights_enabled` needs to be set to true.
Once KMS key is set, it can never be changed.
default: ""
- field_name: performance_insights_retention_period
type: number
details: |
The number of days to retain Performance Insights data.
When specifying `performance_insights_retention_period`, `performance_insights_enabled` needs to be set to true.
The default is 7 days.
The following values are valid: 7, month * 31, where month is a number of months from 1-23, 731.
For example, the following values are valid: 93 (3 months * 31), 341 (11 months * 31), 589 (19 months * 31), and 731.
If you specify a retention period such as 94, which is not a valid value, RDS issues an error.
default: 7
constraints:
minimum: 7
computed_inputs:
- name: labels
default: ${json.marshal(request.default_labels)}
overwrite: true
type: object
- name: engine_version
default: ${postgres_version}
overwrite: true
type: string
template_refs:
outputs: ./terraform/postgresql/provision/outputs.tf
provider: ./terraform/postgresql/provision/provider.tf
versions: ./terraform/postgresql/provision/versions.tf
variables: ./terraform/postgresql/provision/variables.tf
main: ./terraform/postgresql/provision/main.tf
data: ./terraform/postgresql/provision/data.tf
outputs:
- field_name: name
type: string
details: The name of the database.
- field_name: hostname
type: string
details: Hostname or IP address of the exposed PostgreSQL endpoint used by clients to connect to the service.
- field_name: username
type: string
details: The username to authenticate to the database instance.
- field_name: password
type: string
details: The password to authenticate to the database instance.
- field_name: require_ssl
type: boolean
details: Require that connections use SSL
- field_name: provider_verify_certificate
type: boolean
details: Whether PostgreSQL Terraform provider should validate the server certificate. The AWS certificate bundle must be installed.
bind:
plan_inputs: []
user_inputs: []
computed_inputs:
- name: db_name
type: string
default: ${instance.details["name"]}
overwrite: true
- name: hostname
type: string
default: ${instance.details["hostname"]}
overwrite: true
- name: admin_username
type: string
default: ${instance.details["username"]}
overwrite: true
- name: admin_password
type: string
default: ${instance.details["password"]}
overwrite: true
- name: require_ssl
type: boolean
default: ${instance.details["require_ssl"]}
overwrite: true
- name: provider_verify_certificate
type: boolean
default: ${instance.details["provider_verify_certificate"]}
overwrite: true
template_refs:
outputs: ./terraform/postgresql/bind/outputs.tf
provider: ./terraform/postgresql/bind/provider.tf
versions: ./terraform/postgresql/bind/versions.tf
variables: ./terraform/postgresql/bind/variables.tf
main: ./terraform/postgresql/bind/main.tf
data: ./terraform/postgresql/bind/data.tf
outputs:
- field_name: username
type: string
details: The username to authenticate to the database instance.
- field_name: password
type: string
details: The password to authenticate to the database instance.
- field_name: uri
type: string
details: The uri to connect to the database instance and database.
- field_name: jdbcUrl
type: string
details: The jdbc url to connect to the database instance and database.
- field_name: port
type: integer
details: The port number of the exposed postgres instance.
examples:
- name: default
description: Create a default PostgreSQL instance
plan_id: de7dbcee-1c8d-11ed-9904-5f435c1e2316
provision_params: {"publicly_accessible": true, "provider_verify_certificate": false}
bind_params: {}
- name: default-with-features
description: Create a medium multiaz PostgreSQL instance
plan_id: de7dbcee-1c8d-11ed-9904-5f435c1e2316
provision_params: {"publicly_accessible": true, "multi_az": true, "storage_encrypted": true, "provider_verify_certificate": false}
bind_params: {}
- name: default-with-maintenance-window
description: Create a small PostgreSQL instance with encrypted storage
plan_id: de7dbcee-1c8d-11ed-9904-5f435c1e2316
provision_params: {"maintenance_day": "Thu", "maintenance_start_hour": "15", "maintenance_start_min": "30", "maintenance_end_hour": "17", "maintenance_end_min": "00", "publicly_accessible": true, "provider_verify_certificate": false}
bind_params: {}