You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| additional\_tag\_map | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. |`map(string)`|`{}`| no |
285
287
| admin\_password | (Required unless a snapshot\_identifier is provided) Password for the master DB user |`string`|`""`| no |
286
288
| admin\_user | (Required unless a snapshot\_identifier is provided) Username for the master DB user |`string`|`"admin"`| no |
287
289
| allowed\_cidr\_blocks | List of CIDR blocks allowed to access the cluster |`list(string)`|`[]`| no |
@@ -303,42 +305,46 @@ Available targets:
303
305
| cluster\_identifier | The RDS Cluster Identifier. Will use generated label ID if not supplied |`string`|`""`| no |
304
306
| cluster\_parameters | List of DB cluster parameters to apply | <pre>list(object({<br> apply_method = string<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
305
307
| cluster\_size | Number of DB instances to create in the cluster |`number`|`2`| no |
308
+
| context | Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. | <pre>object({<br> enabled = bool<br> namespace = string<br> environment = string<br> stage = string<br> name = string<br> delimiter = string<br> attributes = list(string)<br> tags = map(string)<br> additional_tag_map = map(string)<br> regex_replace_chars = string<br> label_order = list(string)<br> id_length_limit = number<br> })</pre> | <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_order": [],<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {}<br>}</pre> | no |
306
309
| copy\_tags\_to\_snapshot | Copy tags to backup snapshots |`bool`|`false`| no |
307
310
| db\_name | Database name (default is not to create a database) |`string`|`""`| no |
308
311
| db\_port | Database port |`number`|`3306`| no |
309
312
| deletion\_protection | If the DB instance should have deletion protection enabled |`bool`|`false`| no |
310
-
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`|`string`|`"-"`| no |
313
+
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
311
314
| enable\_http\_endpoint | Enable HTTP endpoint (data API). Only valid when engine\_mode is set to serverless |`bool`|`false`| no |
312
-
| enabled | Set to false to prevent the module from creating any resources |`bool`|`true`| no |
315
+
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
313
316
| enabled\_cloudwatch\_logs\_exports | List of log types to export to cloudwatch. The following log types are supported: audit, error, general, slowquery |`list(string)`|`[]`| no |
314
317
| engine | The name of the database engine to be used for this DB cluster. Valid values: `aurora`, `aurora-mysql`, `aurora-postgresql`|`string`|`"aurora"`| no |
315
318
| engine\_mode | The database engine mode. Valid values: `parallelquery`, `provisioned`, `serverless`|`string`|`"provisioned"`| no |
316
319
| engine\_version | The version of the database engine to use. See `aws rds describe-db-engine-versions`|`string`|`""`| no |
317
-
| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' |`string`|`""`| no |
320
+
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
318
321
| global\_cluster\_identifier | ID of the Aurora global cluster |`string`|`""`| no |
319
322
| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled |`bool`|`false`| no |
320
323
| iam\_roles | Iam roles for the Aurora cluster |`list(string)`|`[]`| no |
324
+
| id\_length\_limit | Limit `id` to this many characters.<br>Set to `0` for unlimited length.<br>Set to `null` for default, which is `0`.<br>Does not affect `id_full`. |`number`|`null`| no |
321
325
| instance\_availability\_zone | Optional parameter to place cluster instances in a specific availability zone. If left empty, will place randomly |`string`|`""`| no |
322
326
| instance\_parameters | List of DB instance parameters to apply | <pre>list(object({<br> apply_method = string<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
323
327
| instance\_type | Instance type to use |`string`|`"db.t2.small"`| no |
324
328
| kms\_key\_arn | The ARN for the KMS encryption key. When specifying `kms_key_arn`, `storage_encrypted` needs to be set to `true`|`string`|`""`| no |
329
+
| label\_order | The naming order of the id output and Name tag.<br>Defaults to ["namespace", "environment", "stage", "name", "attributes"].<br>You can omit any of the 5 elements, but at least one must be present. |`list(string)`|`null`| no |
325
330
| maintenance\_window | Weekly time range during which system maintenance can occur, in UTC |`string`|`"wed:03:00-wed:04:00"`| no |
326
-
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`""`| no |
327
-
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`""`| no |
331
+
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`null`| no |
332
+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`null`| no |
328
333
| performance\_insights\_enabled | Whether to enable Performance Insights |`bool`|`false`| no |
329
334
| performance\_insights\_kms\_key\_id | 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 |`string`|`""`| no |
330
335
| publicly\_accessible | Set to true if you want your cluster to be publicly accessible (such as via QuickSight) |`bool`|`false`| no |
331
336
| rds\_monitoring\_interval | Interval in seconds that metrics are collected, 0 to disable (values can only be 0, 1, 5, 10, 15, 30, 60) |`number`|`0`| no |
332
337
| rds\_monitoring\_role\_arn | The ARN for the IAM role that can send monitoring metrics to CloudWatch Logs |`string`|`""`| no |
333
338
| reader\_dns\_name | Name of the reader endpoint CNAME record to create in the parent DNS zone specified by `zone_id`. If left empty, the name will be auto-asigned using the format `replicas.var.name`|`string`|`""`| no |
339
+
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. |`string`|`null`| no |
334
340
| replication\_source\_identifier | ARN of a source DB cluster or DB instance if this DB cluster is to be created as a Read Replica |`string`|`""`| no |
335
341
| retention\_period | Number of days to retain backups for |`number`|`5`| no |
336
342
| scaling\_configuration | List of nested attributes with scaling properties. Only valid when `engine_mode` is set to `serverless`| <pre>list(object({<br> auto_pause = bool<br> max_capacity = number<br> min_capacity = number<br> seconds_until_auto_pause = number<br> timeout_action = string<br> }))</pre> |`[]`| no |
337
343
| security\_groups | List of security groups to be allowed to connect to the DB instance |`list(string)`|`[]`| no |
338
344
| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB cluster is deleted |`bool`|`true`| no |
339
345
| snapshot\_identifier | Specifies whether or not to create this cluster from a snapshot |`string`|`""`| no |
340
346
| source\_region | Source Region of primary cluster, needed when using encrypted storage and region replicas |`string`|`""`| no |
341
-
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`""`| no |
347
+
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
342
348
| storage\_encrypted | Specifies whether the DB cluster is encrypted. The default is `false` for `provisioned``engine_mode` and `true` for `serverless``engine_mode`|`bool`|`false`| no |
343
349
| subnets | List of VPC subnet IDs |`list(string)`| n/a | yes |
344
350
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`|`map(string)`|`{}`| no |
@@ -351,7 +357,7 @@ Available targets:
351
357
352
358
| Name | Description |
353
359
|------|-------------|
354
-
| arn | Amazon Resource Name (ARN) of cluster |
360
+
| arn | Amazon Resource Name (ARN) of the cluster |
355
361
| cluster\_identifier | Cluster Identifier |
356
362
| cluster\_resource\_id | The region-unique, immutable identifie of the cluster |
357
363
| cluster\_security\_groups | Default RDS cluster security groups |
@@ -363,6 +369,7 @@ Available targets:
363
369
| reader\_endpoint | A read-only endpoint for the Aurora cluster, automatically load-balanced across replicas |
0 commit comments