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 - 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

]

}

ReLambda