Skip to content

Commit 49f87e0

Browse files
authored
feat: Support dedicated_log_volume (#549)
1 parent 0a4405c commit 49f87e0

File tree

41 files changed

+81
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+81
-65
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Users have the ability to:
210210
| Name | Version |
211211
|------|---------|
212212
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
213-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
213+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
214214

215215
## Providers
216216

@@ -263,6 +263,7 @@ No resources.
263263
| <a name="input_db_subnet_group_name"></a> [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `null` | no |
264264
| <a name="input_db_subnet_group_tags"></a> [db\_subnet\_group\_tags](#input\_db\_subnet\_group\_tags) | Additional tags for the DB subnet group | `map(string)` | `{}` | no |
265265
| <a name="input_db_subnet_group_use_name_prefix"></a> [db\_subnet\_group\_use\_name\_prefix](#input\_db\_subnet\_group\_use\_name\_prefix) | Determines whether to use `subnet_group_name` as is or create a unique name beginning with the `subnet_group_name` as the prefix | `bool` | `true` | no |
266+
| <a name="input_dedicated_log_volume"></a> [dedicated\_log\_volume](#input\_dedicated\_log\_volume) | Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. | `bool` | `false` | no |
266267
| <a name="input_delete_automated_backups"></a> [delete\_automated\_backups](#input\_delete\_automated\_backups) | Specifies whether to remove automated backups immediately after the DB instance is deleted | `bool` | `true` | no |
267268
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true | `bool` | `false` | no |
268269
| <a name="input_domain"></a> [domain](#input\_domain) | The ID of the Directory Service Active Directory domain to create the instance in | `string` | `null` | no |

examples/blue-green-deployment/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Note that this example may create resources which cost money. Run `terraform des
2727
| Name | Version |
2828
|------|---------|
2929
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
30-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
30+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
3131

3232
## Providers
3333

3434
| Name | Version |
3535
|------|---------|
36-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
36+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3737

3838
## Modules
3939

examples/blue-green-deployment/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/complete-mssql/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/complete-mssql/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/complete-mysql/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/complete-mysql/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/complete-oracle/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/complete-oracle/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/complete-postgres/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/complete-postgres/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/cross-region-replica-postgres/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/cross-region-replica-postgres/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/enhanced-monitoring/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
2222
| Name | Version |
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
25-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3232

3333
## Modules
3434

examples/enhanced-monitoring/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/groups/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

examples/groups/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/replica-mysql/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/replica-mysql/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/replica-postgres/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
3030

3131
## Modules
3232

examples/replica-postgres/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/role-association-postgres/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Further database configurations for creating extension and invoking from postgre
1010
| Name | Version |
1111
|------|---------|
1212
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
13-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
13+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
1414

1515
## Providers
1616

1717
| Name | Version |
1818
|------|---------|
19-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
19+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
2020

2121
## Modules
2222

examples/role-association-postgres/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

examples/s3-import-mysql/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Note that this example may create resources which cost money. Run `terraform des
4949
| Name | Version |
5050
|------|---------|
5151
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
52-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
52+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
5353

5454
## Providers
5555

5656
| Name | Version |
5757
|------|---------|
58-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
58+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
5959

6060
## Modules
6161

examples/s3-import-mysql/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99
}
1010
}

main.tf

+7-6
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ module "db_instance" {
9999
option_group_name = var.engine != "postgres" ? local.option_group : null
100100
network_type = var.network_type
101101

102-
availability_zone = var.availability_zone
103-
multi_az = var.multi_az
104-
iops = var.iops
105-
storage_throughput = var.storage_throughput
106-
publicly_accessible = var.publicly_accessible
107-
ca_cert_identifier = var.ca_cert_identifier
102+
availability_zone = var.availability_zone
103+
multi_az = var.multi_az
104+
iops = var.iops
105+
storage_throughput = var.storage_throughput
106+
publicly_accessible = var.publicly_accessible
107+
ca_cert_identifier = var.ca_cert_identifier
108+
dedicated_log_volume = var.dedicated_log_volume
108109

109110
allow_major_version_upgrade = var.allow_major_version_upgrade
110111
auto_minor_version_upgrade = var.auto_minor_version_upgrade

modules/db_instance/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
| Name | Version |
77
|------|---------|
88
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
9-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.36 |
9+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.47 |
1010
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.1 |
1111

1212
## Providers
1313

1414
| Name | Version |
1515
|------|---------|
16-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.36 |
16+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.47 |
1717
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.1 |
1818

1919
## Modules
@@ -57,6 +57,7 @@ No modules.
5757
| <a name="input_db_instance_tags"></a> [db\_instance\_tags](#input\_db\_instance\_tags) | A map of additional tags for the DB instance | `map(string)` | `{}` | no |
5858
| <a name="input_db_name"></a> [db\_name](#input\_db\_name) | The DB name to create. If omitted, no database is created initially | `string` | `null` | no |
5959
| <a name="input_db_subnet_group_name"></a> [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `null` | no |
60+
| <a name="input_dedicated_log_volume"></a> [dedicated\_log\_volume](#input\_dedicated\_log\_volume) | Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. | `bool` | `false` | no |
6061
| <a name="input_delete_automated_backups"></a> [delete\_automated\_backups](#input\_delete\_automated\_backups) | Specifies whether to remove automated backups immediately after the DB instance is deleted | `bool` | `true` | no |
6162
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no |
6263
| <a name="input_domain"></a> [domain](#input\_domain) | The ID of the Directory Service Active Directory domain to create the instance in | `string` | `null` | no |

modules/db_instance/main.tf

+7-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ resource "aws_db_instance" "this" {
6262
option_group_name = var.option_group_name
6363
network_type = var.network_type
6464

65-
availability_zone = var.availability_zone
66-
multi_az = var.multi_az
67-
iops = var.iops
68-
storage_throughput = var.storage_throughput
69-
publicly_accessible = var.publicly_accessible
70-
ca_cert_identifier = var.ca_cert_identifier
65+
availability_zone = var.availability_zone
66+
multi_az = var.multi_az
67+
iops = var.iops
68+
storage_throughput = var.storage_throughput
69+
publicly_accessible = var.publicly_accessible
70+
ca_cert_identifier = var.ca_cert_identifier
71+
dedicated_log_volume = var.dedicated_log_volume
7172

7273
allow_major_version_upgrade = var.allow_major_version_upgrade
7374
auto_minor_version_upgrade = var.auto_minor_version_upgrade

modules/db_instance/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,12 @@ variable "network_type" {
426426
default = null
427427
}
428428

429+
variable "dedicated_log_volume" {
430+
description = "Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS."
431+
type = bool
432+
default = false
433+
}
434+
429435
################################################################################
430436
# CloudWatch Log Group
431437
################################################################################

modules/db_instance/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.36"
7+
version = ">= 5.47"
88
}
99

1010
random = {

0 commit comments

Comments
 (0)