Skip to content

feat(rds): add database_insights_mode #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ resource "aws_db_instance" "default" {
performance_insights_enabled = var.performance_insights_enabled
performance_insights_kms_key_id = var.performance_insights_enabled ? var.performance_insights_kms_key_id : null
performance_insights_retention_period = var.performance_insights_enabled ? var.performance_insights_retention_period : null
database_insights_mode = var.database_insights_mode

monitoring_interval = var.monitoring_interval
monitoring_role_arn = var.monitoring_role_arn
Expand Down
11 changes: 11 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,17 @@ 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)."
}

variable "database_insights_mode" {
type = string
default = "standard"
nullable = false
description = "The mode for CloudWatch Database Insights. Valid values: 'standard' or 'advanced'."
validation {
condition = contains(["standard", "advanced"], var.database_insights_mode)
error_message = "database_insights_mode must be one of: 'standard' (free) or 'advanced'."
}
}

variable "enabled_cloudwatch_logs_exports" {
type = list(string)
default = []
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.0"
version = ">= 5.92.0"
}
}
}
Loading