diff --git a/README.md b/README.md index 6c49108..5a34fcd 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ | database\_name | Database Name | `string` | `""` | no | | db\_parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | | db\_subnet\_group\_id | RDS Subnet Group Name | `string` | n/a | yes | -| db\_subnet\_group\_subnet\_ids | List of Subnet IDs for the RDS Subnet Group | `list(any)` | `[]` | no | +| db\_subnet\_group\_subnet\_ids | List of Subnet IDs for the RDS Subnet Group | `list` | `[]` | no | | db\_type | Valid values are: rds, aurora or serverless | `string` | n/a | yes | | deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | | enabled\_cloudwatch\_logs\_exports | (Optional) Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine) | `any` | `null` | no | diff --git a/_variables.tf b/_variables.tf index 8d47e96..75f0fee 100644 --- a/_variables.tf +++ b/_variables.tf @@ -138,7 +138,6 @@ variable "db_subnet_group_id" { } variable "db_subnet_group_subnet_ids" { - type = list(any) description = "List of Subnet IDs for the RDS Subnet Group" default = [] } diff --git a/aurora.tf b/aurora.tf index c55b616..1212df3 100644 --- a/aurora.tf +++ b/aurora.tf @@ -14,6 +14,7 @@ resource "aws_rds_cluster" "aurora_cluster" { iam_database_authentication_enabled = var.iam_database_authentication_enabled vpc_security_group_ids = [aws_security_group.rds_db.id] db_cluster_parameter_group_name = var.create_cluster_parameter_group == true ? aws_rds_cluster_parameter_group.custom_cluster_pg[count.index].name : "" + apply_immediately = var.apply_immediately } resource "aws_rds_cluster_instance" "cluster_instances" { @@ -24,7 +25,7 @@ resource "aws_rds_cluster_instance" "cluster_instances" { engine = aws_rds_cluster.aurora_cluster[0].engine engine_version = aws_rds_cluster.aurora_cluster[0].engine_version db_parameter_group_name = var.create_db_parameter_group == true ? aws_db_parameter_group.aurora_custom_db_pg[count.index].name : "" - + publicly_accessible = var.publicly_accessible } resource "aws_rds_cluster_parameter_group" "custom_cluster_pg" { @@ -43,7 +44,6 @@ resource "aws_rds_cluster_parameter_group" "custom_cluster_pg" { apply_method = lookup(parameter.value, "apply_method", null) } } - } resource "aws_db_parameter_group" "aurora_custom_db_pg" {