Nifcloud RDB Has Backup Retention Less Than 2 Day
- Query id: e5071f76-cbe7-468d-bb2b-d10f02d2b713
- Query name: Nifcloud RDB Has Backup Retention Less Than 2 Day
- Platform: Terraform
- Severity: Medium
- Category: Backup
- URL: Github
Description¶
The rdb has backup retention less than 2 day
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Positive test num. 1 - tf file
resource "nifcloud_db_instance" "positive" {
identifier = "example"
instance_class = "db.large8"
}
Positive test num. 2 - tf file
resource "nifcloud_db_instance" "positive" {
identifier = "example"
instance_class = "db.large8"
backup_retention_period = 1
}