EBS does not have an AWS Backup backup plan misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC2_AWS_9
Category - Subcategory
Storage - Backups
Provider
AWS
Severity
LOW
Framework
Terraform, Terraform Plan
Impact
Ensure that EBS are included in your backup plans for the AWS Backup. AWS Backup is a fully managed backup service that helps you protect your data in the cloud by automatically backing up your data to a secure, durable storage location. By creating a backup plan, you can ensure that your data is regularly backed up and can be recovered in the event of data loss or corruption.
How to Fix
Resource: aws_backup_selection, aws_ebs_volume
Arguments: resources and plan_id of aws_backup_selection [source,go]
{ "resource "aws_ebs_volume" "ebs_good" { availability_zone = "us-west-2a" size = 40
tags = { Name = "HelloWorld" }
}
resource "aws_backup_selection" "backup_good" { iam_role_arn = "arn" name = "tf_example_backup_selection" plan_id = "123456"
resources = [ aws_ebs_volume.ebs_good.arn ] }
", }
Last updated
Was this helpful?
