Setting up automatic policy assignment

You can set up automatic assignment of policies to instances or buckets by using one of the following methods:

Resources Method 1 Method 2
Instances

By first adding custom tags to instances in Amazon EC2, and then specifying the corresponding label names and values in HYCU for AWS policies. For details, see “Creating custom policies”.

By adding the hycu-policy tag to instances in Amazon EC2 or buckets in Amazon S3. Use the following name/value pair:

Name: hycu-policy

Value: <PolicyName>

In this case, <PolicyName> is the name of a HYCU for AWS policy (for example, Gold).

Buckets

By first adding bucket labels to buckets in Amazon S3, and then specifying the corresponding label names and values in HYCU for AWS policies. For details, see “Creating custom policies”.

The corresponding policies are automatically assigned to the instances or buckets during the next instance or bucket synchronization in HYCU for AWS.

Prerequisite

All relevant prerequisites that apply also for manual policy assignment are fulfilled. For details, see “Backing up instances”.

Considerations

  • Assigning policies automatically takes precedence over assigning policies manually or setting a default policy. This means that the label or the tag added to the preferred instance or bucket defines which policy is assigned to it, even if the same instance or bucket already has an assigned policy.
  • If you want to assign a new policy to an instance or a bucket for which automatic policy assignment has been set up, do one of the following:

    • Define new tags or labels as described in this section.
    • Assign the policy to the instance or the bucket as described in “Backing up instances” or “Backing up buckets”. In this case, the manually assigned policy will not be overridden by the automatically assigned one again.