You can configure backups for Amazon EC2 instances for a single AWS account using an IAM role. The configuration wizard guides you through the configuration process, which includes creating any new entities that are needed, such as a backup plan, a hypervisor, and a VM group.
Start the Configuration Wizard
-
From the Command Center navigation pane, go to Protect > Virtual machines.
The Virtual machines page appears.
-
In the upper-right area of the page, click Add Hypervisors.
The Configure Hypervisor page appears.
-
Select Amazon Web Services.
-
Click Next.
The Configure permissions page of the Configure Amazon Web Services Account wizard appears.
Configure permissions
-
Select Use your access nodes for backups.
-
From the Authentication method list, select IAM role.
-
Verify an existing CommvaultRole IAM role or create a new CommvaultRole IAM role:
-
If the CommvaultRole IAM role was previously created for another AWS workload, do the following:
- Verify that the IAM policies for the AWS workload are still attached to the CommvaultRole IAM role.
-
If the CommvaultRole IAM role does not exist yet, create it in AWS.
Steps to create CommvaultRole IAM role
-
Click the Launch CloudFormation Stack link to open the AWS console.
Important
If you do not have permission to create a role in the AWS account, copy the Launch CloudFormation Stack link and share it with your AWS IAM administrator.
-
Log on to the AWS console.
The Quick create stack page appears.
-
Under Capabilities, read the information about the template, and then select the acknowledgment check box.
-
Click Create stack.
Wait for the CloudFormation Stack to finish creating the CommvaultRole IAM Role. The CloudFormation Stack creates IAM policies for all supported AWS workloads, and then attaches the policies to CommvaultRole.
-
Return to the Commvault Cloud configuration wizard.
-
-
-
Click Next.
The Access Nodes page of the configuration wizard appears.
Access Nodes
An access node is required to back up instances without egress charges.
Considerations
-
If AWS EBS encryption is enabled for your region in your AWS account, the user who uses the access node template must be a key user for the default encryption key. To see if EBS encryption is enabled, in your AWS account, go to EC2 > EC2 Dashboard > Settings > EBS encryption. To see a list of key users for the default encryption key, in your AWS account, go to Key Management Service > Customer managed keys. If you do not have the correct level of access to use the template, you can copy the Launch Cloud Formation Stack link and share it with someone who has the correct level of access, such as your security administrator.
-
Determine the region of your AWS S3 storage. The access node must reside in the same region as the primary storage.
Important
-
Enable Authcode on the CommCell or Company where the access node is to be deployed.
-
If the client is unable to connect to the CommServe, configure a network gateway (firewall proxy) and specify it in the CloudFormationTemplate to deploy the access node.
-
Starting with Commvault Platform Release 11.42.40, MediaAgent AMIs (CIS hardened) have been updated. Subscribe to the latest AMIs before configuring access nodes. For more information, see Configuring an Access Node for Amazon EC2.
Important
The MediaAgent AMIs (CIS hardened) have been updated. Subscribe to the latest AMIs before configuring the access nodes. For more information, see Configuring an Access Node for Amazon EC2.
Procedure
-
Select an existing access node or create a new access node.
Steps to create a access node
-
Click the add button
.The Add access node dialog box appears.
-
For Platform, select the OS for the access node.
-
Click Generate link.
An AWS CloudFormation template is created based on the region and the operating system that you selected.
-
Click the Launch CloudFormation Template link to open the AWS console.
Note
If AWS EBS encryption is enabled for your region in your AWS account, to use the template, you must be a key user for the default encryption key. If you are not a key user for the default encryption key, copy the Launch Cloud Formation Template link and share it with someone who is a key user, such as your security administrator.
-
Log on to the AWS console.
The Quick create stack page appears.
-
Under Parameters, specify the following information:
-
For EC2 Instance Type, select the type of EC2 instance to use for the access node.
-
For EC2 Key Pair, select a key pair to use to access the Commvault Cloud access node.
-
For VPC ID, select an Amazon Virtual Private Cloud (VPC).
-
For Subnet ID, select a subnet.
-
For VPC CIDR, select a VPC CIDR.
Note
Port 8403 opens on access nodes only when the request comes from the IP ranges that are listed in the VPC CIDR.
-
-
Click Create stack.
Wait for the Commvault Cloud access node to be created.
-
Return to the Commvault Cloud configuration wizard.
-
Refresh the list of access nodes, and then select the access node that you created.
-
-
Click Next.
The Add Account page of the configuration wizard appears.
Add Account
-
In the Name box, enter the hypervisor name.
-
Under Advanced options, select the specific regional endpoints to protect all the instances in that region. By default, All Public regions is selected.
-
Click Next.
The Add VM Group page of the configuration wizard appears.
Add VM Group
A VM group is a set of VMs that you want to back up with the same settings. By default, the VM group is associated with all unprotected VMs that are discovered.
You can add content to the VM group by using rules that auto-discover content, by selecting specific instances, and by other ways. When you first create the VM group, you can add an instance that is relatively small, and then later you can update the VM group by adding more content.
-
In Name, enter a descriptive name for the VM group.
-
To create rules that auto-discover and select instances to back up, do the following:
-
Click Add, and then select Rule.
The Add rule dialog box appears.
-
From the list, select the type of rule to create, and then specify the rule:
-
Browse: Select specific instances. (Selecting this option changes the Add rule dialog box to the Add content dialog box.)
-
Guest DNS hostname: Select instances based on a hostname or a domain. For example, to select hosts on the "mycompany.com" domain, enter Guest DNS hostname | Ends with | mycompany.com.
-
Guest OS: Select instances based on operating system. For example, to select instances that are not Windows, enter Guest OS | Does not contain | Windows.
-
Instance name or pattern: Select instances based on their names. For example, to select instances that have a name that includes "east", enter Instance name or pattern | Contains | east.
-
Instance type: Select instances based on their type, such as t2.micro or c5.large.
-
Power state: Select instances based on a power status of Running or Stopped.
-
Region: Select instances based on the region that they reside in.
-
Tag name: Select instances based on the names of tags that are assigned to them. Enter the tag name in the region\tag_name format. For example, to select instances in the eastern US region that are for a department, enter Tag name | Equals | us-east-1\department.
-
Tag value: Select instances based on the values of tags that are assigned to them. Enter the tag value in the region\tag_name\tag_value format. For example, to select instances in the eastern US region for the human resources department, enter Tag value | Equals | us-east-1\department\HR.
-
Zone: Select instances based on the zone that they reside in. For example, to select instances that reside in any eastern US zone, enter Zone | Contains | us-east. You can enter the zone value by typing or browsing to select.
-
-
Click Save.
-
-
To select instances in other ways, do the following:
-
Click Add, and then select Content.
The Add content dialog box appears.
-
From the Browse and select VMs list, select one of the following:
-
By region: Select instances based on the region that they reside in.
-
By zone: Select instances based on the zone that they reside in.
-
By tags: Select instances based on tags that are assigned to them.
-
By instance type: Select instances based on their type, such as t2.micro or c5.large.
-
-
Select the instances to add to the VM group.
-
Click Save.
-
-
To see the instances that are selected for the VM group, click the Preview button.
-
Click Next.
The Plan page of the configuration wizard appears.
Plan
Select an existing backup plan or create a new backup plan. A backup plan specifies the storage to back up the data to and other settings such as recovery point objective (RPO) settings.
To create a backup plan, do the following:
-
Click the add button
.The Create backup plan dialog box appears.
-
In Plan name box, enter a descriptive name for the backup plan.
-
If you have your own storage, move the Bring your own storage toggle key to the right, and then add any of the following storages:
-
For Retention rules, select pre-defined settings or create custom settings, and then click Done.
-
To select pre-defined settings, under Retention rules, select Standard retention to retain the incremental backups for 1 month.
-
To create custom settings, move the Custom plan toggle key to the right, and then specify the following:
-
For Retention, specify the amount of time to retain the backups.
-
For Backups run every, specify how often to run backups.
-
-
-
Click Next.
The Summary page of the configuration wizard appears.
Summary
-
Review the summary.
-
Click Close.