

# ec2-resources-protected-by-backup-plan
<a name="ec2-resources-protected-by-backup-plan"></a>

Checks if Amazon Elastic Compute Cloud (Amazon EC2) instances are protected by a backup plan. The rule is NON\$1COMPLIANT if the Amazon EC2 instance is not covered by a backup plan. 

**Note**  
This rule is only applicable to running Amazon EC2 instances and not to instances that are powered down.

**Identifier:** EC2\$1RESOURCES\$1PROTECTED\$1BY\$1BACKUP\$1PLAN

**Resource Types:** AWS::EC2::Instance

**Trigger type:** Periodic

**AWS Region:** All supported AWS regions except Asia Pacific (New Zealand), China (Beijing), Asia Pacific (Thailand), Asia Pacific (Malaysia), Mexico (Central), Israel (Tel Aviv), Asia Pacific (Taipei), Canada West (Calgary), China (Ningxia) Region

**Parameters:**

resourceTags (Optional)Type: String  
Tags for Amazon EC2 instances for the rule to check, in JSON format `{"tagkey" : "tagValue"}`.

resourceId (Optional)Type: String  
ID of Amazon EC2 instance for the rule to check.

crossRegionList (Optional)Type: String  
Comma-separated list of destination regions for the cross-region backup copy to be kept

crossAccountList (Optional)Type: String  
Comma-separated list of destination accounts for cross-account backup copy to be kept

maxRetentionDays (Optional)Type: int  
The maximum retention period in days for the Backup Vault Lock

minRetentionDays (Optional)Type: int  
The minimum retention period in days for the Backup Vault Lock

backupVaultLockCheck (Optional)Type: String  
Accepted values: 'True' or 'False'. Enter 'True' for the rule to check if the resource is backed up in a locked vault

## AWS CloudFormation template
<a name="w2aac20c16c17b7d599c19"></a>

To create AWS Config managed rules with AWS CloudFormation templates, see [Creating AWS Config Managed Rules With AWS CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).