

# Select Amazon services to backup
<a name="assigning-resources"></a>

## Opt in to services, then assign resources
<a name="w2aac13c19b3"></a>

Amazon Backup works with many [different Amazon services](backup-feature-availability.md#features-by-resource). Before you decide which services to include in backup plan, use the [Amazon Backup console](#backup-optin-console) or [Amazon CLI](#backup-optin-cli) to opt in to using Amazon Backup to work with those services.

Then, in each backup plan, specify in the [console](assigning-resources-console.md) or through [CLI](assigning-resources-json.md) which resource types to include in that plan.

For example, you can opt in to all services which Amazon Backup supports, then include only Amazon S3 buckets and Aurora clusters in a backup plan.

**Topics**
+ [Opt in to services, then assign resources](#w2aac13c19b3)
+ [Amazon Backup service opt-in](#backup-service-optin)
+ [Backup plan resource assignment](#backup-resource-assignment)
+ [Assign resources using the Amazon Backup console](assigning-resources-console.md)
+ [Assign resources with Amazon CLI](assigning-resources-json.md)
+ [Assign Amazon Backup resources through Amazon CloudFormation](assigning-resources-cfn.md)
+ [Backup plan resource assignments quotas](#assigning-resources-quotas)

## Amazon Backup service opt-in
<a name="backup-service-optin"></a>

### Service opt-in through the Amazon Backup console
<a name="backup-optin-console"></a>

**To configure the Amazon services to use with Amazon Backup**

1. Sign in to the Amazon Web Services Management Console, and open the Amazon Backup console at [https://console.amazonaws.cn/backup](https://console.amazonaws.cn/backup).

1. In the navigation pane, choose **Settings**.

1. On the **Service opt-in** page, choose **Configure resources**.

1. On the **Configure resources** page, use the toggle switches to enable or disable the services that are used with Amazon Backup. Choose **Confirm** when your services are configured. Make sure that the Amazon service you're opting in is available in your Amazon Web Services Region.

### Service opt-in through Amazon CLI
<a name="backup-optin-cli"></a>

Use the [https://docs.amazonaws.cn/aws-backup/latest/devguide/API_UpdateRegionSettings.html](https://docs.amazonaws.cn/aws-backup/latest/devguide/API_UpdateRegionSettings.html) command to change the services (resource types) your account or organization will use Amazon Backup to orchestrate backup creation. Use the [https://docs.amazonaws.cn/aws-backup/latest/devguide/API_DescribeRegionSettings.html](https://docs.amazonaws.cn/aws-backup/latest/devguide/API_DescribeRegionSettings.html) command to determine which services you have opted into in a specific Region.

## Backup plan resource assignment
<a name="backup-resource-assignment"></a>

Through the [Amazon Backup console](assigning-resources-console.md) or through [Amazon CLI](assigning-resources-json.md), the resource assignment in your backup plan specifies which resources Amazon Backup will include. Amazon Backup provides both simple default settings and fine-grained controls to assign resources.

 You can assign resources in the following ways:
+ Explicitly assign resource types to the backup plan
+ Include all resources (Amazon Backup will then scan for all supported resource types)
+ Use tags to include or exclude resources

If you only use tags for resource assignment, then the service opt-in settings will still apply.

 You can further refine the resource assignment using conditions and tags. There are some limits on the number of ARNs, conditions, and tags that can be used in a single resource assignment.

Resource selection through CLI is based on service names and resource types. See [Assign resources with Amazon CLI](assigning-resources-json.md) for considerations about resource election.

## Backup plan resource assignments quotas
<a name="assigning-resources-quotas"></a>

The following quotas apply to a single resource assignment:
+ 500 Amazon Resource Names (ARNs) without wildcards
+ 30 ARNs with wildcard expressions
+ 30 conditions
+ 30 tags per resource assignment (and an unlimited number of resources per tag)