Ensure EBS has an AWS Backup backup plan

Error: EBS does not have an AWS Backup backup plan

Bridgecrew Policy ID: BC_AWS_GENERAL_50
Checkov Check ID: CKV2_AWS_9
Severity: LOW

EBS does not have an AWS Backup backup plan

Description

TBA

Fix - Buildtime

Terraform

  • Resource: aws_backup_selection, aws_ebs_volume
  • Argument: resources and plan_id of aws_backup_selection
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
  ]
}

Did this page help you?