Ongoing service disruptions
For the most recent update on ongoing service disruptions affecting the AWS Middle East (UAE) Region (ME-CENTRAL-1), refer to the AWS Health Dashboard. For information on AWS Service migration, see How do I migrate my services to another region?
How do I set up VSS backup in AWS Backup?
I want to use AWS Backup to set up application-consistent backups for my Amazon Elastic Compute Cloud (Amazon EC2) Windows instances.
Short description
To create application-consistent backups, use the AWS Backup console to take a Windows Volume Shadow Copy Service (VSS) snapshot.
To use AWS Backup to set up VSS backups for Windows EC2 instances, complete the following steps:
- If you don't already have an EC2 instance, then create an instance.
- Set up AWS Systems Manager for the EC2 instance.
- Update the AWS Systems Manager Agent (SSM Agent) that's installed when you associate the EC2 instance.
- Use SSM Agent to install the AWSVSSComponents package on the EC2 instance.
- Create an EC2 role with permissions to take VSS backups, and then attach the role to the EC2 instance.
- Use AWS Backup to take a backup of the EC2 instance.
To create VSS backups, make sure that you complete all of the prerequisites before you begin.
Resolution
Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.
Create an EC2 instance
If you don't have an EC2 instance, then create an instance. You must use a supported instance size and operating system (Windows Server 2012 or later). You can't use the following unsupported instance sizes for VSS backups:
- t3.nano
- t3.micro
- t3a.nano
- t3a.micro
- t2.nano
- t2.micro
Set up Systems Manager on your EC2 instance
If you already set up Systems Manager on your instance, then proceed to the next section. Otherwise, complete the following steps:
- Open the Systems Manager console.
- In the navigation pane, choose Quick Setup, and then choose Get started.
- For Host Management, choose Create.
- In the Configuration options section, choose the options that you want to allow for your configuration.
- In the Targets section, choose how you want to configure your host management.
- Choose Create.
- To verify that your instance is associated with Systems Manager, run the describe-instance-associations-status AWS CLI command:
Note: Replace your_instance_id with your value.aws ssm describe-instance-associations-status --instance-id your_instance_id
Update the SSM Agent that's installed when you associate your instance with Systems Manager
SSM Agent is preinstalled on certain EC2 instance types.
To update SSM Agent, complete the following steps:
- Open the Systems Manager console.
- In the navigation pane, under Node Tools, choose Run Command, and then choose Run a Command.
- Search for and then choose AWS-UpdateSSMAgent.
- Under Target selection, use tags or a resource group to select your instance. You can also manually select instances.
- (Optional) Choose configurations for output options, Amazon CloudWatch alarms, and Amazon Simple Notification Service (Amazon SNS) notifications.
- Choose Run.
Install the AWSVSSComponents package on the EC2 instance
To install the VSS package, complete the following steps:
- Open the Systems Manager console.
- In the navigation pane, under Node Tools, choose Run Command, and then choose Run a Command.
- Search for and then choose AWS-ConfigureAWSPackage.
- In the Command parameters section, for Action, choose Install. For Name, choose AwsVssComponents. Leave the Version box empty so that Systems Manager installs the latest version.
- Under Target selection, use tags or a resource group to select your instance. You can also manually select your instance.
- (Optional) Choose configurations for output options, CloudWatch alarms, and Amazon SNS notifications.
- Choose Run.
Create an EC2 role with permissions to take VSS backups
To create a VSS backup, attach additional permissions to the EC2 instance role. Complete the following steps to create a policy, attach the policy to a role, and then attach the role to your EC2 instance.
- Create an AWS Identity and Access Management (IAM) policy. The policy must be similar to the policy that's shown in Use an IAM managed policy to grant permissions for VSS based snapshots.
- Create an IAM role called VssSnapshotRole. Attach the policy that you created in step 1 to this IAM role. Then, attach the AWS managed policy AmazonSSMManagedInstanceCore to the role.
- Attach your IAM role to the EC2 instance.
Use AWS Backup to take a backup of the EC2 instance
Complete the following steps:
- Open the AWS Backup console.
- In the navigation pane, under My account, choose Dashboard.
- Choose Create on-demand backup.
- In the Settings section, for Resource type, choose EC2. Add the details of your EC2 instance.
- In the Advanced backup settings section, select the Windows VSS checkbox.
- Choose Create on-demand backup.
You can also use a backup plan to create backups. If you use this method, then make sure that you select the Windows VSS checkbox in your backup plan.
Note: Your EC2 instance must not be in the Stopped state when the VSS backup is running.
Review the results
A backup job with a status of Completed doesn't mean that the VSS operation is successful. To determine if a backup is application-consistent, crash-consistent, or failed, complete the following steps:
- Open the AWS Backup console.
- In the navigation pane, under My Account, choose Jobs.
- Check the status of your backup job. You see one of the following statuses:
A Completed status indicates that the backup is successful and the application is consistent (VSS).
A Completed status with a green warning sign indicates that the VSS operation failed and that AWS Backup created only a regular backup.
A Failed status means that the backup is unsuccessful. - To view additional details for the backup, choose the individual backup job. For example, the details might indicate that the VSS backup failed because of a timeout during the VSS-activated snapshot creation. To troubleshoot VSS errors, see How do I troubleshoot Amazon EC2 VSS failures in AWS Backup?
- Topics
- Storage
- Tags
- AWS Backup
- Language
- English

Relevant content
- asked 4 years ago
- asked 3 years ago
- asked 3 years ago
AWS OFFICIALUpdated 3 years ago
AWS OFFICIALUpdated 3 years ago
AWS OFFICIALUpdated 4 months ago