Ensure Alibaba Cloud database instance is not public

Error: Alibaba Cloud database instance is public

Bridgecrew Policy ID: BC_ALI_GENERAL_7
Checkov Check ID: CKV_ALI_9
Severity: LOW

Alibaba Cloud database instance is public

Description

Fix - Buildtime - Terraform

No 0.0.0.0 in security_ips

resource "alicloud_db_instance" "pass" {
  engine              = "MySQL"
  engine_version      = "5.6"
  db_instance_class   = "rds.mysql.t1.small"
  db_instance_storage = "10"
  security_ips = [
    "10.23.12.24"
  ]
  parameters = [{
    name  = "innodb_large_prefix"
    value = "ON"
    }, {
    name  = "connect_timeout"
    value = "50"
  }]
}

Did this page help you?