How to use "Restore to Amazon EC2" via AWS PrivateLink
KB ID: | 4264 |
Product: | Veeam Backup & Replication |
Version: | 11a or newer |
Published: | 2022-01-20 |
Last Modified: | 2022-01-20 |
Purpose
This article documents how to configure Veeam Backup & Replication to perform Restore to Amazon EC2 via AWS PrivateLink. This restore configuration also works when the Veeam Backup server has restricted or no public internet access.
Solution
Prepare the Environment
- Create both an S3 Interface Endpoint and an EC2 Endpoint within the AWS console.
- 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 which corresponds to the location of your PrivateLink.
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> - 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 1.
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: AwsApplianceUsePublicIp
Data: 0
- Name: S3TLSRevocationCheck
Data: 0
- 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 'AwsApplianceUsePublicIp' -Value "0" -PropertyType DWORD -Force
New-ItemProperty -Path 'HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\' -Name 'S3TLSRevocationCheck' -Value "0" -PropertyType DWORD -Force
Perform the Restore
With Veeam Backup & Replication now modified to force it to connect to the specified Endpoints, proceed with performing a Restore to Amazon EC2.
Restore notes:
- When specifying the "Data center region:" select the one that matches the Region you modified in the Prep phase.
- Enable the "Use the proxy appliance" option.
- If the Veeam Backup server's public internet access is restricted or blocked, when you click [ Ok ] after you click [ Customize ] on the Proxy Appliance step, you may see a warning about "The operation has timed out." Select [ Yes ] and proceed.
More information
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.