Severity Framework
Snyk CCSS
Rule category
Data / Backup
Is your enviroment affected by this misconfiguration?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsFrameworks
CIS-Controls
CIS-Google
CSA-CCM
GDPR
HIPAA
ISO-27001
SOC-2
- Snyk ID SNYK-CC-00364
- credit Snyk Research Team
Description
SQL database instances should be configured to be automatically backed up. Backups enable a Cloud SQL instance to recover lost data or to recover from a problem with that instance.
How to fix?
Set settings.backup_configuration.enabled
attribute to true
.
Example Configuration
resource "google_sql_database_instance" "allowed" {
name = "master-instance"
database_version = "POSTGRES_11"
region = "us-central1"
settings {
tier = "db-f1-micro"
backup_configuration {
enabled = true
}
}
}