How to use "Restore to Amazon EC2" via AWS PrivateLink / Direct Connect

KB ID: 4264
Product: Veeam Backup & Replication
Version: 11a or newer
Published: 2022-01-20
Last Modified: 2022-03-24
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Purpose

This article documents how to configure Veeam Backup & Replication to perform Restore to Amazon EC2 via AWS PrivateLink or AWS Direct Connect. This restore configuration also works when the Veeam Backup server has restricted or no public internet access.

Solution

Prepare the Environment

  1. Create both an S3 Interface Endpoint and an EC2 Endpoint within the AWS console.

  2. Modify the regions file to alter which server Veeam Backup & Replication will attempt to connect to for S3 and EC2
    1. On the Veeam Backup Server, edit C:\Program Files\Veeam\Backup and Replication\Backup\AmazonS3Regions.xml
    2. Find the Region section which corresponds to the location of your PrivateLink.
      Example:
       <Region Id="ap-northeast-1" Name="Asia Pacific (Tokyo)" Type="Global">
      
    3. 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>
      
    4. 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>
      
    5. 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>
      
    6. Save the file.
Default Setting
Before Modification
After Modification
After Modification
  1. 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
    1. Name: CloudRegionsDisableUpdate
      Data: 1
    2. Name: AwsApplianceUsePublicIp
      Data: 0
    3. Name: S3TLSRevocationCheck
      Data: 0

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.
Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.