More Info:

This rule checks if Amazon Elastic Compute Cloud (Amazon EC2) instances are protected by a backup plan. The rule is NON_COMPLIANT if the Amazon EC2 instance is not covered by a backup plan.

Risk Level

High

Address

Configuration

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of EC2 instances not having a backup plan in AWS, you can set up automated backups using Amazon EBS snapshots. Here’s a step-by-step guide on how to do this using the AWS Management Console:

  1. Sign in to the AWS Management Console: Go to https://aws.amazon.com/ and sign in to the AWS Management Console using your credentials.

  2. Navigate to the EC2 Dashboard: Click on the “Services” dropdown menu at the top of the page, select “EC2” under the “Compute” section to go to the EC2 Dashboard.

  3. Select the EC2 Instance: In the EC2 Dashboard, select the EC2 instance for which you want to set up automated backups.

  4. Create an Amazon EBS Snapshot:

    • Select the EBS volume attached to the EC2 instance.
    • Click on the “Actions” dropdown menu, navigate to “Create snapshot” and click on it.
    • Enter a descriptive name for the snapshot and click on “Create snapshot”.
  5. Set up Automated Backups:

    • In the EC2 Dashboard, under the “ELASTIC BLOCK STORE” section, click on “Snapshots”.
    • Select the snapshot that you created in the previous step.
    • Click on the “Actions” dropdown menu and select “Create Lifecycle Policy”.
    • Enter a name for the policy, set the frequency and retention period for backups, and click on “Create policy”.
  6. Monitor Backup Status:

    • To monitor the backup status, go to the EC2 Dashboard, click on “Instances” in the navigation pane, and select the EC2 instance.
    • Under the “Description” tab, you can view the details of the automated backups and their status.

By following these steps, you have successfully set up automated backups for your EC2 instance using Amazon EBS snapshots, ensuring that you have a backup plan in place for protection.