description = "The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens"
description = "Whether the proxy includes detailed information about SQL statements in its logs. Only enable this setting for debugging and ensure proper security measures are in place to protect sensitive information in the logs. To minimize overhead, RDS Proxy automatically disables this setting 24 hours after activation. Use it temporarily to troubleshoot specific issues."
description = "The kind of database engine that the proxy will connect to. Valid values are `MYSQL` or `POSTGRESQL`"
type = string
default = ""
}
variable"idle_client_timeout"{
description = "The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it"
type = number
default = 1800
}
variable"require_tls"{
description = "A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy"
type = bool
default = true
}
variable"role_arn"{
description = "The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager"
type = string
default = ""
}
variable"vpc_security_group_ids"{
description = "One or more VPC security group IDs to associate with the new proxy"
type = list(string)
default = []
}
variable"vpc_subnet_ids"{
description = "One or more VPC subnet IDs to associate with the new proxy"
type = list(string)
default = []
}
variable"proxy_tags"{
description = "A map of tags to apply to the RDS Proxy"
type = map(string)
default = {}
}
# Proxy Default Target Group
variable"connection_borrow_timeout"{
description = "The number of seconds for a proxy to wait for a connection to become available in the connection pool"
type = number
default = null
}
variable"init_query"{
description = "One or more SQL statements for the proxy to run when opening each new database connection"
type = string
default = ""
}
variable"max_connections_percent"{
description = "The maximum size of the connection pool for each target in a target group"
type = number
default = 90
}
variable"max_idle_connections_percent"{
description = "Controls how actively the proxy closes idle database connections in the connection pool"
type = number
default = 50
}
variable"session_pinning_filters"{
description = "Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection"
description = "Determines whether Terraform will create/manage the CloudWatch log group or not. Note - this will fail if set to true after the log group has been created as the resource will already exist"
type = bool
default = true
}
variable"log_group_retention_in_days"{
description = "Specifies the number of days you want to retain log events in the log group"
type = number
default = 30
}
variable"log_group_kms_key_id"{
description = "The ARN of the KMS Key to use when encrypting log data"
type = string
default = null
}
variable"log_group_tags"{
description = "A map of tags to apply to the CloudWatch log group"