Skip to content

Commit a277924

Browse files
authored
feat: Add support for network_type (#431)
* Adds support for network_type * Changes default value of network_type to null
1 parent 7fb1d5b commit a277924

File tree

7 files changed

+18
-2
lines changed

7 files changed

+18
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Users have the ability to:
209209
| Name | Version |
210210
|------|---------|
211211
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
212-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.6 |
212+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.28 |
213213
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.1 |
214214

215215
## Providers
@@ -289,6 +289,7 @@ Users have the ability to:
289289
| <a name="input_monitoring_role_name"></a> [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled | `string` | `"rds-monitoring-role"` | no |
290290
| <a name="input_monitoring_role_use_name_prefix"></a> [monitoring\_role\_use\_name\_prefix](#input\_monitoring\_role\_use\_name\_prefix) | Determines whether to use `monitoring_role_name` as is or create a unique identifier beginning with `monitoring_role_name` as the specified prefix | `bool` | `false` | no |
291291
| <a name="input_multi_az"></a> [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no |
292+
| <a name="input_network_type"></a> [network\_type](#input\_network\_type) | The type of network stack to use | `string` | `null` | no |
292293
| <a name="input_option_group_description"></a> [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `null` | no |
293294
| <a name="input_option_group_name"></a> [option\_group\_name](#input\_option\_group\_name) | Name of the option group | `string` | `null` | no |
294295
| <a name="input_option_group_timeouts"></a> [option\_group\_timeouts](#input\_option\_group\_timeouts) | Define maximum timeout for deletion of `aws_db_option_group` resource | `map(string)` | `{}` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ module "db_instance" {
9494
db_subnet_group_name = local.db_subnet_group_name
9595
parameter_group_name = local.parameter_group_name_id
9696
option_group_name = local.option_group
97+
network_type = var.network_type
9798

9899
availability_zone = var.availability_zone
99100
multi_az = var.multi_az

modules/db_instance/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ No modules.
7575
| <a name="input_monitoring_role_name"></a> [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no |
7676
| <a name="input_monitoring_role_use_name_prefix"></a> [monitoring\_role\_use\_name\_prefix](#input\_monitoring\_role\_use\_name\_prefix) | Determines whether to use `monitoring_role_name` as is or create a unique identifier beginning with `monitoring_role_name` as the specified prefix | `bool` | `false` | no |
7777
| <a name="input_multi_az"></a> [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no |
78+
| <a name="input_network_type"></a> [network\_type](#input\_network\_type) | The type of network stack | `string` | `null` | no |
7879
| <a name="input_option_group_name"></a> [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. | `string` | `null` | no |
7980
| <a name="input_parameter_group_name"></a> [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate | `string` | `null` | no |
8081
| <a name="input_password"></a> [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | `null` | no |

modules/db_instance/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ resource "aws_db_instance" "this" {
5656
db_subnet_group_name = var.db_subnet_group_name
5757
parameter_group_name = var.parameter_group_name
5858
option_group_name = var.option_group_name
59+
network_type = var.network_type
5960

6061
availability_zone = var.availability_zone
6162
multi_az = var.multi_az

modules/db_instance/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,12 @@ variable "restore_to_point_in_time" {
346346
default = null
347347
}
348348

349+
variable "network_type" {
350+
description = "The type of network stack"
351+
type = string
352+
default = null
353+
}
354+
349355
################################################################################
350356
# CloudWatch Log Group
351357
################################################################################

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,12 @@ variable "random_password_length" {
478478
default = 16
479479
}
480480

481+
variable "network_type" {
482+
description = "The type of network stack to use"
483+
type = string
484+
default = null
485+
}
486+
481487
################################################################################
482488
# CloudWatch Log Group
483489
################################################################################

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.6"
7+
version = ">= 4.28"
88
}
99

1010
random = {

0 commit comments

Comments
 (0)