---
title: "Ensure EBS has an AWS Backup backup plan"
canonical: "https://kb.cynergy.app/space/MD/991855216/Ensure%20EBS%20has%20an%20AWS%20Backup%20backup%20plan"
format: markdown
---
Cynergy Policy ID: CYN_AWS_GENERAL_50  
Severity: LOW

#   
EBS does not have an AWS Backup backup plan

# Description

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.

# Fix - Build time

## Terraform

- **Resource:** aws_backup_selection, aws_ebs_volume
- **Argument:** *resources* and *plan_id* of aws_backup_selection

Go

```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
  ]
}

```