How to offload backup files to Capacity and Archive Tiers via AWS PrivateLink / Direct Connect
KB ID: | 4226 |
Product: | Veeam Backup & Replication |
Version: | 11a or newer |
Published: | 2021-10-17 |
Last Modified: | 2022-03-17 |
Purpose
This article documents how to configure Veeam Backup & Replication to use AWS PrivateLink or AWS Direct Connect for Scale-Out Backup Repository offload to Capacity Tier or Archive Tier.
Solution
Prepare the Environment
- (If using Direct Connect, skip to step 2.) For AWS PrivateLink, configure a VPN connection to the VPC where you are planning to deploy the PrivateLink Endpoint. One of the ways to do this is to create a tunnel on the VM gateway using AWS Client VPN.
- Create Endpoints in VPC:
- Create an S3 Interface Endpoint in your VPC. It will be assigned a DNS name that you can see in the AWS Console under VPC - Endpoints, when selecting the corresponding Endpoint.
- If intending to use Archive Tier, an EC2 Endpoint must be created as well.
- Modify the regions file to alter which server Veeam Backup & Replication will attempt to connect to for S3 and EC2
- On the Veeam Backup Server, edit C:\Program Files\Veeam\Backup and Replication\Backup\AmazonS3Regions.xml
- Find the Region section that corresponds to your PrivateLink or Direct Connect location.
Example:
<Region Id="ap-northeast-1" Name="Asia Pacific (Tokyo)" Type="Global">
- Within that Region's section, find the line <Endpoint Type="s3"> and replace the existing DNS value with the S3 Interface Endpoint DNS created in Step 1.
Note: For S3, the AWS console will display a DNS value starting with an asterisk. When altering the AmazonS3Regions file, replace the asterisk with the word bucket.
Example:
<Endpoint Type="S3">s3-ap-northeast-1.amazonaws.com</Endpoint>
Is changed to:
<Endpoint Type="S3">bucket.vpce-00000000000000000-00000000.s3.ap-northeast-1.vpce.amazonaws.com</Endpoint>
- If there are multiple lines for <Endpoint Type="S3"> in the Region section you are altering, remove all but the one you changed.
Example:
<Region Id="ap-northeast-1" Name="Asia Pacific (Tokyo)" Type="Global"> <Endpoint Type="S3">s3-ap-northeast-1.amazonaws.com</Endpoint>
<Endpoint Type="S3">s3.dualstack.ap-northeast-1.amazonaws.com</Endpoint> - If you plan to use Archive Tier: Within the same Region section, find the line <Endpoint Type="EC2"> and replace the existing DNS value with the EC2 Endpoint DNS created in Step 2.
Example:
<Endpoint Type="EC2">ec2.ap-northeast-1.amazonaws.com</Endpoint>
Is changed to:
<Endpoint Type="EC2">vpce-00000000000000000-00000000.ec2.ap-northeast-1.vpce.amazonaws.com</Endpoint>
- Save the file.
- On the Veeam Backup Server, edit C:\Program Files\Veeam\Backup and Replication\Backup\AmazonS3Regions.xml
- Create the following registry values on the Veeam Backup & Replication server.
*All registry values are to be created in the key: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\
*All registry values are DWORD (32-Bit) Values
- Name: CloudRegionsDisableUpdate
Data: 1
- Name: S3TLSRevocationCheck
Data: 0
- Name: ArchiveFreezingUsePrivateIpForAmazonAppliance
Data: 1 - Name: ArchiveFreezingSkipProxyValidation
Data: 1
- Name: CloudRegionsDisableUpdate
Alternatively, the following PowerShell commands can be executed on the Veeam Backup server to set the registry values.
New-ItemProperty -Path 'HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\' -Name 'CloudRegionsDisableUpdate' -Value "1" -PropertyType DWORD -Force
New-ItemProperty -Path 'HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\' -Name 'S3TLSRevocationCheck' -Value "0" -PropertyType DWORD -Force
New-ItemProperty -Path 'HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\' -Name 'ArchiveFreezingUsePrivateIpForAmazonAppliance' -Value "1" -PropertyType DWORD -Force
New-ItemProperty -Path 'HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\' -Name 'ArchiveFreezingSkipProxyValidation' -Value "1" -PropertyType DWORD -Force
- Stop all tasks within Veeam Backup & Replication and restart the Veeam Backup Service to apply all changes.
Add Object Storage Repository
With the AmazonS3Regions.xml file modified, when selecting the corresponding entry within Veeam Backup & Replication, it will connect to the specified endpoints.
- For Capacity Tier, Add Amazon S3 Storage repository. On the Bucket tab of the wizard, select the Region that matches the Region name you modified in the Prep phase.
- For Archive Tier, Add Amazon S3 Glacier Storage repository. On the Bucket tab of the wizard, select the Data center that matches the Region name you modified in the Prep phase.
Once the Object Storage Repositories are added:
- Add Capacity Tier to Scale-Out Backup Repository
- Add Archive Tier to Scale-Out Backup Repository
More Information
Related Articles:
Click here to send feedback regarding this KB, or suggest content for a new KB.
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.