Skip to content

Commit

Permalink
Merges origin/Allow-Multiple-Storage-Types-With-Provisioned-IOPS (pul…
Browse files Browse the repository at this point in the history
…l request #86)
  • Loading branch information
hajati committed Nov 7, 2024
2 parents 12d53ef + 6e55112 commit c9e1ea5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ Description: Storage type

Type: `string`

Default: `"gp2"`
Default: `"gp3"`

### <a name="input_rds_allocated_storage"></a> [rds\_allocated\_storage](#input\_rds\_allocated\_storage)

Expand Down
3 changes: 1 addition & 2 deletions rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ locals {
enhanced_monitoring_interval = contains([1, 5, 10, 15, 30, 60], var.rds_enhanced_monitoring_interval) ? var.rds_enhanced_monitoring_interval : 0
create_enhanced_monitoring_role = local.enhanced_monitoring_interval > 0 ? true : false
enhanced_monitoring_role_name = local.enhanced_monitoring_interval > 0 ? "${var.env}-${local.rds_identifier}-monitoring" : null
rds_storage_type = var.rds_iops > 0 ? "io1" : var.rds_storage_type
}

# -------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -78,7 +77,7 @@ module "rds" {
engine_version = var.rds_engine_version
major_engine_version = var.rds_major_engine_version
instance_class = var.rds_node_type
storage_type = local.rds_storage_type
storage_type = var.rds_storage_type
iops = var.rds_iops
allocated_storage = var.rds_allocated_storage
max_allocated_storage = var.rds_max_allocated_storage
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ variable "rds_multi_az" {
variable "rds_storage_type" {
description = "Storage type"
type = string
default = "gp2"
default = "gp3"
}

variable "rds_allocated_storage" {
Expand Down

0 comments on commit c9e1ea5

Please sign in to comment.