Skip to content

Commit e54fbd7

Browse files
authored
feat: Add support for network_type argument (#322)
1 parent 18b87fe commit e54fbd7

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ Terraform documentation is generated automatically using [pre-commit hooks](http
225225
| Name | Version |
226226
|------|---------|
227227
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
228-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.12 |
228+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.28 |
229229
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.2 |
230230

231231
## Providers
232232

233233
| Name | Version |
234234
|------|---------|
235-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.12 |
235+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.28 |
236236
| <a name="provider_random"></a> [random](#provider\_random) | >= 2.2 |
237237

238238
## Modules
@@ -343,6 +343,7 @@ No modules.
343343
| <a name="input_monitoring_interval"></a> [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for instances. Set to `0` to disable. Default is `0` | `number` | `0` | no |
344344
| <a name="input_monitoring_role_arn"></a> [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | IAM role used by RDS to send enhanced monitoring metrics to CloudWatch | `string` | `""` | no |
345345
| <a name="input_name"></a> [name](#input\_name) | Name used across resources created | `string` | `""` | no |
346+
| <a name="input_network_type"></a> [network\_type](#input\_network\_type) | The type of network stack to use (IPV4 or DUAL) | `string` | `null` | no |
346347
| <a name="input_performance_insights_enabled"></a> [performance\_insights\_enabled](#input\_performance\_insights\_enabled) | Specifies whether Performance Insights is enabled or not | `bool` | `null` | no |
347348
| <a name="input_performance_insights_kms_key_id"></a> [performance\_insights\_kms\_key\_id](#input\_performance\_insights\_kms\_key\_id) | The ARN for the KMS key to encrypt Performance Insights data | `string` | `null` | no |
348349
| <a name="input_performance_insights_retention_period"></a> [performance\_insights\_retention\_period](#input\_performance\_insights\_retention\_period) | Amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years) | `number` | `null` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ resource "aws_rds_cluster" "this" {
8989
kms_key_id = var.kms_key_id
9090
master_password = var.is_primary_cluster ? local.master_password : null
9191
master_username = var.is_primary_cluster ? var.master_username : null
92+
network_type = var.network_type
9293
port = local.port
9394
preferred_backup_window = local.is_serverless ? null : var.preferred_backup_window
9495
preferred_maintenance_window = local.is_serverless ? null : var.preferred_maintenance_window

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ variable "subnets" {
4848
default = []
4949
}
5050

51+
variable "network_type" {
52+
description = "The type of network stack to use (IPV4 or DUAL)"
53+
type = string
54+
default = null
55+
}
56+
5157
################################################################################
5258
# Cluster
5359
################################################################################

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.12"
7+
version = ">= 4.28"
88
}
99

1010
random = {

0 commit comments

Comments
 (0)