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
Add storage_throughput for better gp3 support (#153)
* Add storage_throughput for better gp3 support
* Auto Format
* Update variables.tf
* Auto Format
---------
Co-authored-by: cloudpossebot <[email protected]>
Co-authored-by: nitrocode <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -317,6 +317,7 @@ Available targets:
317
317
| <aname="input_snapshot_identifier"></a> [snapshot\_identifier](#input\_snapshot\_identifier)| Snapshot identifier e.g: rds:production-2019-06-26-06-05. If specified, the module create cluster from the snapshot |`string`|`null`| no |
318
318
| <aname="input_stage"></a> [stage](#input\_stage)| ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
319
319
| <aname="input_storage_encrypted"></a> [storage\_encrypted](#input\_storage\_encrypted)| (Optional) Specifies whether the DB instance is encrypted. The default is false if not specified |`bool`|`true`| no |
320
+
| <aname="input_storage_throughput"></a> [storage\_throughput](#input\_storage\_throughput)| The storage throughput value for the DB instance. Can only be set when `storage_type` is `gp3`. Cannot be specified if the `allocated_storage` value is below a per-engine threshold. |`number`|`null`| no |
320
321
| <aname="input_storage_type"></a> [storage\_type](#input\_storage\_type)| One of 'standard' (magnetic), 'gp2' (general purpose SSD), 'gp3' (general purpose SSD), or 'io1' (provisioned IOPS SSD) |`string`|`"standard"`| no |
321
322
| <aname="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids)| List of subnet IDs for the DB. DB instance will be created in the VPC associated with the DB subnet group provisioned using the subnet IDs. Specify one of `subnet_ids`, `db_subnet_group_name` or `availability_zone`|`list(string)`|`[]`| no |
322
323
| <aname="input_tags"></a> [tags](#input\_tags)| Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`).<br>Neither the tag keys nor the tag values will be modified by this module. |`map(string)`|`{}`| no |
Copy file name to clipboardExpand all lines: docs/terraform.md
+1
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@
102
102
| <aname="input_snapshot_identifier"></a> [snapshot\_identifier](#input\_snapshot\_identifier)| Snapshot identifier e.g: rds:production-2019-06-26-06-05. If specified, the module create cluster from the snapshot |`string`|`null`| no |
103
103
| <aname="input_stage"></a> [stage](#input\_stage)| ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
104
104
| <aname="input_storage_encrypted"></a> [storage\_encrypted](#input\_storage\_encrypted)| (Optional) Specifies whether the DB instance is encrypted. The default is false if not specified |`bool`|`true`| no |
105
+
| <aname="input_storage_throughput"></a> [storage\_throughput](#input\_storage\_throughput)| The storage throughput value for the DB instance. Can only be set when `storage_type` is `gp3`. Cannot be specified if the `allocated_storage` value is below a per-engine threshold. |`number`|`null`| no |
105
106
| <aname="input_storage_type"></a> [storage\_type](#input\_storage\_type)| One of 'standard' (magnetic), 'gp2' (general purpose SSD), 'gp3' (general purpose SSD), or 'io1' (provisioned IOPS SSD) |`string`|`"standard"`| no |
106
107
| <aname="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids)| List of subnet IDs for the DB. DB instance will be created in the VPC associated with the DB subnet group provisioned using the subnet IDs. Specify one of `subnet_ids`, `db_subnet_group_name` or `availability_zone`|`list(string)`|`[]`| no |
107
108
| <aname="input_tags"></a> [tags](#input\_tags)| Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`).<br>Neither the tag keys nor the tag values will be modified by this module. |`map(string)`|`{}`| no |
Copy file name to clipboardExpand all lines: variables.tf
+6
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,12 @@ variable "iops" {
81
81
default=0
82
82
}
83
83
84
+
variable"storage_throughput" {
85
+
type=number
86
+
description="The storage throughput value for the DB instance. Can only be set when `storage_type` is `gp3`. Cannot be specified if the `allocated_storage` value is below a per-engine threshold."
87
+
default=null
88
+
}
89
+
84
90
variable"allocated_storage" {
85
91
type=number
86
92
description="The allocated storage in GBs. Required unless a `snapshot_identifier` or `replicate_source_db` is provided."
0 commit comments