RDS instance log connections disabled 이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: terraform-alicloud-rds-instance-log-connections-disabled
Provider: Alicloud
Platform: Terraform
Severity: Medium
Category: Observability
Learn More Description The log_connections parameter should be set to ON for RDS instances. This rule flags alicloud_db_instance resources when the parameters array does not include a log_connections entry or when value = "OFF". Remediation is to add or replace the parameters entry with name = "log_connections" and value = "ON".
Compliant Code Examples resource "alicloud_db_instance" "default" {
engine = "MySQL"
engine_version = "5.6"
db_instance_class = "rds.mysql.t1.small"
db_instance_storage = "10"
parameters = [{
name = "innodb_large_prefix"
value = "ON"
},{
name = "connect_timeout"
value = "50"
},{
name = "log_connections"
value = "ON"
}]
}
Non-Compliant Code Examples resource "alicloud_db_instance" "default" {
engine = "MySQL"
engine_version = "5.6"
db_instance_class = "rds.mysql.t1.small"
db_instance_storage = "10"
parameters = [{
name = "innodb_large_prefix"
value = "ON"
},{
name = "connect_timeout"
value = "50"
}]
}
resource "alicloud_db_instance" "default" {
engine = "MySQL"
engine_version = "5.6"
db_instance_class = "rds.mysql.t1.small"
db_instance_storage = "10"
parameters = [
{
name = "innodb_large_prefix"
value = "ON"
},{
name = "connect_timeout"
value = "50"
},{
name = "log_connections"
value = "OFF"
}
]
}
resource "alicloud_db_instance" "default" {
engine = "MySQL"
engine_version = "5.6"
db_instance_class = "rds.mysql.t1.small"
db_instance_storage = "10"
}