Skip to content

Commit

Permalink
Merge pull request #77 from NishantTomar/TERA-22
Browse files Browse the repository at this point in the history
added performance_insights_enabled argument for rds_instance - #22
  • Loading branch information
cmbuckley committed Sep 18, 2023
2 parents a4f86de + 50f299c commit b0c65b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/aws/rds_serverless_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ These secrets are also set as outputs of the module and can be referenced throug
| <a name="input_database_engine"></a> [database\_engine](#input\_database\_engine) | This specifies the engine the database will use. This value has to be one of two options: aurora-mysql, aurora-postgresql | `string` | n/a | yes |
| <a name="input_database_engine_version"></a> [database\_engine\_version](#input\_database\_engine\_version) | This is the version of the engine you would like. | `string` | n/a | yes |
| <a name="input_database_name"></a> [database\_name](#input\_database\_name) | The name assigned to the database. | `string` | n/a | yes |
| <a name="input_database_performance_insights_enabled"></a> [database\_performance\_insights\_enabled](#input\_database\_performance\_insights\_enabled) | Specifies whether the RDS instance has Performance Insights enabled. | `bool` | `false` | no |
| <a name="input_database_security_groups"></a> [database\_security\_groups](#input\_database\_security\_groups) | This is a list of VPC security group ids to associate with the database cluster. | `list(string)` | `[]` | no |
| <a name="input_database_serverlessv2_scaling_max_capacity"></a> [database\_serverlessv2\_scaling\_max\_capacity](#input\_database\_serverlessv2\_scaling\_max\_capacity) | This sets the maximum scaling capacity of the severless database in Aurora capacity units (ACU). | `number` | `1` | no |
| <a name="input_database_serverlessv2_scaling_min_capacity"></a> [database\_serverlessv2\_scaling\_min\_capacity](#input\_database\_serverlessv2\_scaling\_min\_capacity) | This sets the minimum scaling capacity of the severless database in Auroracapacity units (ACU). | `number` | `0.5` | no |
Expand Down
5 changes: 3 additions & 2 deletions modules/aws/rds_serverless_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ resource "aws_rds_cluster_instance" "primary_rds_cluster_instance" {
engine_version = aws_rds_cluster.rds_cluster.engine_version
db_subnet_group_name = aws_db_subnet_group.private_db_subnet_group.name

auto_minor_version_upgrade = var.database_auto_minor_version_upgrade
availability_zone = var.database_availability_zone
performance_insights_enabled = var.database_performance_insights_enabled
auto_minor_version_upgrade = var.database_auto_minor_version_upgrade
availability_zone = var.database_availability_zone

tags = {
Name = "${var.project_name}-rds-primary-cluster-instance"
Expand Down
6 changes: 6 additions & 0 deletions modules/aws/rds_serverless_cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ variable "database_auto_minor_version_upgrade" {
variable "prevent_deletion" {
type = bool
}

variable "database_performance_insights_enabled" {
type = bool
default = false
description = "Specifies whether the RDS instance has Performance Insights enabled."
}

0 comments on commit b0c65b6

Please sign in to comment.