Commit 25808c7c authored by Aaron Walker's avatar Aaron Walker Committed by Anton Babenko

Add support for performance insights retention period (#147)

* Add var.performance_insights_retention_period

* Add performance insights retention docs
parent fcd5dfd0
...@@ -182,6 +182,7 @@ module "db" { ...@@ -182,6 +182,7 @@ module "db" {
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `[]` | no | | parameters | A list of DB parameters (map) to apply | list(map(string)) | `[]` | no |
| 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 | n/a | yes | | 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 | n/a | yes |
| performance\_insights\_enabled | Specifies whether Performance Insights are enabled | bool | `"false"` | no | | performance\_insights\_enabled | Specifies whether Performance Insights are enabled | bool | `"false"` | no |
| performance\_insights\_retention\_period | The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). | number | `7` | no |
| port | The port on which the DB accepts connections | string | n/a | yes | | port | The port on which the DB accepts connections | string | n/a | yes |
| publicly\_accessible | Bool to control if instance is publicly accessible | bool | `"false"` | no | | publicly\_accessible | Bool to control if instance is publicly accessible | bool | `"false"` | no |
| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | string | `""` | no | | replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | string | `""` | no |
......
...@@ -94,6 +94,7 @@ module "db_instance" { ...@@ -94,6 +94,7 @@ module "db_instance" {
final_snapshot_identifier = var.final_snapshot_identifier final_snapshot_identifier = var.final_snapshot_identifier
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_retention_period
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
backup_window = var.backup_window backup_window = var.backup_window
......
...@@ -82,6 +82,7 @@ resource "aws_db_instance" "this" { ...@@ -82,6 +82,7 @@ resource "aws_db_instance" "this" {
max_allocated_storage = var.max_allocated_storage max_allocated_storage = var.max_allocated_storage
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_retention_period
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
backup_window = var.backup_window backup_window = var.backup_window
...@@ -150,7 +151,9 @@ resource "aws_db_instance" "this_mssql" { ...@@ -150,7 +151,9 @@ resource "aws_db_instance" "this_mssql" {
copy_tags_to_snapshot = var.copy_tags_to_snapshot copy_tags_to_snapshot = var.copy_tags_to_snapshot
final_snapshot_identifier = var.final_snapshot_identifier final_snapshot_identifier = var.final_snapshot_identifier
max_allocated_storage = var.max_allocated_storage max_allocated_storage = var.max_allocated_storage
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_retention_period
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
backup_window = var.backup_window backup_window = var.backup_window
......
...@@ -262,6 +262,12 @@ variable "performance_insights_enabled" { ...@@ -262,6 +262,12 @@ variable "performance_insights_enabled" {
default = false default = false
} }
variable "performance_insights_retention_period" {
description = "The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years)."
type = number
default = 7
}
variable "max_allocated_storage" { variable "max_allocated_storage" {
description = "Specifies the value for Storage Autoscaling" description = "Specifies the value for Storage Autoscaling"
type = number type = number
......
...@@ -331,6 +331,12 @@ variable "performance_insights_enabled" { ...@@ -331,6 +331,12 @@ variable "performance_insights_enabled" {
default = false default = false
} }
variable "performance_insights_retention_period" {
description = "The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years)."
type = number
default = 7
}
variable "max_allocated_storage" { variable "max_allocated_storage" {
description = "Specifies the value for Storage Autoscaling" description = "Specifies the value for Storage Autoscaling"
type = number type = number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment