-
Notifications
You must be signed in to change notification settings - Fork 16
/
aws-aurora-postgresql.yml
345 lines (345 loc) · 13.5 KB
/
aws-aurora-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
version: 1
name: csb-aws-aurora-postgresql
id: 36203e40-2945-11ed-8980-eb81bd131a02
description: Amazon Aurora for PostgreSQL
display_name: Amazon Aurora for PostgreSQL
image_url: file://service-images/csb.png
documentation_url: https://docs.vmware.com/en/Cloud-Service-Broker-for-VMware-Tanzu/index.html
provider_display_name: VMware
support_url: https://aws.amazon.com/rds/aurora/
tags: [aws, aurora, postgresql, postgres]
plan_updateable: true
provision:
plan_inputs: []
user_inputs:
- field_name: engine_version
type: string
details: |
The Aurora PostgreSQL engine version, e.g. "14.4".
If `auto_minor_version_upgrade` is enabled, you must specify a major version such as 14 (for 14.7).
Not all features are supported by all versions. Refer to the AWS documentation for more details.
required: true
- field_name: instance_name
type: string
details: Name for the DB cluster
default: csb-aurorapg-${request.instance_id}
constraints:
maxLength: 98
minLength: 6
pattern: ^[a-z][a-z0-9-]+$
prohibit_update: true
- field_name: cluster_instances
type: integer
details: Number of Aurora cluster instances. The first instance is a writer instance, and additional instances are readers and will be distributed across the AZs available in the region.
default: 3
- field_name: db_name
type: string
details: Name for the database that Amazon RDS creates when it creates the DB instance
default: csbdb
constraints:
maxLength: 64
pattern: ^[a-z][a-z0-9_]+$
prohibit_update: true
- 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
- <<: &nullable_number
type: number
default: null
nullable: true
field_name: serverless_min_capacity
details: |
The minimum capacity for the cluster. Must be less than or equal to `serverless_max_capacity`. Valid capacity values are in a range of 0.5 up to 128 in steps of 0.5.
The `serverless_min_capacity` and `serverless_max_capacity` properties are ineffective without setting the `instance_class` property to a valid value for Aurora Serverless v2.
Review documentation to understand the restrictions associated with the different types of instances accepted by Aurora:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html
- <<: *nullable_number
field_name: serverless_max_capacity
details: |
The maximum capacity for the cluster. Must be greater than or equal to `serverless_min_capacity`. Valid capacity values are in a range of 0.5 up to 128 in steps of 0.5.
The `serverless_min_capacity` and `serverless_max_capacity` properties are ineffective without setting the `instance_class` property to a valid value for Aurora Serverless v2.
Review documentation to understand the restrictions associated with the different types of instances accepted by Aurora:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html
- field_name: rds_subnet_group
type: string
details: AWS RDS subnet group already in existence to use
default: ""
prohibit_update: true
- 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.
If `auto_minor_version_upgrade` is enabled, you must specify a major engine version.
default: true
- 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: 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
type: string
details: VPC ID for instance
default: ""
- field_name: copy_tags_to_snapshot
type: boolean
default: true
details: Copy all cluster tags to snapshots
- field_name: backup_retention_period
type: integer
details: |
The number of days (1-35) for which automatic backups are kept.
Automated backups cannot be disabled on Aurora.
The backup retention period determines the period for which you can perform a point-in-time recovery.
default: 1
constraints:
minimum: 1
maximum: 35
- field_name: preferred_backup_window
type: string
default: null
nullable: true
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/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow)
- field_name: require_ssl
type: boolean
details: Require that connections use SSL. Note that if "db_cluster_parameter_group_name" is specified then the "require_ssl" parameter will not take effect.
default: true
- field_name: db_cluster_parameter_group_name
type: string
default: ""
details: |
DB cluster parameter group name. If not set, a DB cluster parameter group is created.
The DB cluster parameter group contains the set of engine configuration parameters that apply throughout the Aurora DB cluster.
The DB cluster parameter group also contains default settings for the DB parameter group for the DB instances that make up the cluster.
- field_name: monitoring_interval
type: integer
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/AuroraUserGuide/USER_Monitoring.OS.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 Enhanced Monitoring metrics see https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Monitoring.OS.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: integer
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
- field_name: storage_encrypted
type: boolean
default: true
details: |
Specifies whether a DB cluster is encrypted. The default is true. This parameter cannot be updated.
prohibit_update: true
- field_name: kms_key_id
type: string
default: ""
prohibit_update: true
details: |
The ARN for the KMS encryption key. When specifying kms_key_id, storage_encrypted needs to be set to true.
- field_name: instance_class
type: string
details: |
The DB instance class determines the computation and memory capacity of an Amazon Aurora DB instance.
Review documentation to understand the restrictions associated with the different types of instances accepted by Aurora:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html
required: true
- <<: &nullable_string
type: string
default: null
nullable: true
field_name: preferred_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: preferred_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: preferred_maintenance_start_min
type: string
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: preferred_maintenance_end_hour
details: The preferred maintenance end hour
enum: *hour_enum
- <<: *nullable_string
field_name: preferred_maintenance_end_min
details: The preferred maintenance end minute
enum: *minute_enum
computed_inputs:
- name: labels
default: ${json.marshal(request.default_labels)}
overwrite: true
type: object
template_refs:
outputs: ./terraform/aurora-postgresql/provision/outputs.tf
provider: ./terraform/aurora-postgresql/provision/provider.tf
versions: ./terraform/aurora-postgresql/provision/versions.tf
variables: ./terraform/aurora-postgresql/provision/variables.tf
main: ./terraform/aurora-postgresql/provision/main.tf
data: ./terraform/aurora-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: reader_hostname
type: string
details: Hostname or IP address of the exposed reader 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: port
type: integer
details: The port number of the exposed database instance.
bind:
plan_inputs: []
user_inputs:
- field_name: reader_endpoint
type: boolean
details: Expose the Aurora reader endpoint, which is balanced across Reader and Writer instances
default: false
computed_inputs:
- name: name
type: string
default: ${instance.details["name"]}
overwrite: true
- name: hostname
type: string
default: ${instance.details["hostname"]}
overwrite: true
- name: reader_hostname
type: string
default: ${instance.details["reader_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: port
type: integer
default: ${instance.details["port"]}
overwrite: true
template_refs:
outputs: ./terraform/aurora-postgresql/bind/outputs.tf
provider: ./terraform/aurora-postgresql/bind/provider.tf
versions: ./terraform/aurora-postgresql/bind/versions.tf
variables: ./terraform/aurora-postgresql/bind/variables.tf
main: ./terraform/aurora-postgresql/bind/main.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 database instance.
- field_name: name
type: string
details: The name of the database.