Discussions related to using object storage as a backup target.
Post Reply
martijnp
Novice
Posts: 7
Liked: 2 times
Joined: Dec 11, 2019 1:35 pm
Contact:

Adding s3 bucket from backup for aws as an external repository

Post by martijnp »

Hello,

I'm trying to add the s3 bucket repo from backup for aws as an external repository in veeam B&R.

But i keep getting the error region not found , also with powershell:

Code: Select all

PS C:\Users\Administrator>  $account = Get-VBRAmazonAccount -AccessKey "xxxxxxxxx"
PS C:\Users\Administrator> $connection = Connect-VBRAmazonS3Service -Account $account -RegionType Global -ServiceType ExternalRepository
PS C:\Users\Administrator> Get-VBRAmazonS3Region -Connection $connection -RegionId "eu-west-1"
>> TerminatingError(Get-VBRAmazonS3Region): "An Amazon S3 region with the specified ID does not exist: eu-west-1"
Get-VBRAmazonS3Region : An Amazon S3 region with the specified ID does not exist: eu-west-1
At line:1 char:1
+ Get-VBRAmazonS3Region -Connection $connection -RegionId "eu-west-1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-VBRAmazonS3Region], Exception
    + FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.GetVBRAmazonS3Region
Get-VBRAmazonS3Region : An Amazon S3 region with the specified ID does not exist: eu-west-1
At line:1 char:1
+ Get-VBRAmazonS3Region -Connection $connection -RegionId "eu-west-1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-VBRAmazonS3Region], Exception
    + FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.GetVBRAmazonS3Region
i can list the buckets using the aws cli and get the bucket location
aws s3 ls and also with s3api

Code: Select all

aws s3api get-bucket-location --bucket vcbbucket
{
"LocationConstraint": "eu-west-1"
}
is the source code available of these powershell modules?

and we have a direct connect connection between our backup server on premise and aws , would it be possible to connect to the s3 bucket and veeam 4 aws appliance , without internet using endpoints only ?
HannesK
Product Manager
Posts: 14840
Liked: 3086 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Adding s3 bucket from backup for aws as an external repository

Post by HannesK »

Hello,
with normal internet connection your code works fine for me.

I believe the reason is, that you have direct connect. To troubleshoot I would do the following
1) try the connection with a normal S3 bucket instead of external repository (do with with the GUI)
2) once that connection works, try again with the external repository via GUI
3) if 2 works, then powershell should also work

There are some hints noted in post416139.html?hilit=direct%20connect#p416139. We are also investigating a better solution for S3 buckets.

Best regards,
Hannes
martijnp
Novice
Posts: 7
Liked: 2 times
Joined: Dec 11, 2019 1:35 pm
Contact:

Re: Adding s3 bucket from backup for aws as an external repository

Post by martijnp »

Hello, Thanks for the reply

Yes i can connect the bucket as a s3 compatible , backup repository because than i can specify an s3 endpoint (servicepoint)

Is it possible to have this setup completely without internet using vpc endpoints.
I tried to edit the amazons3regions.xml file , in the veeam program folder) by replacing the default urls for my region to my vpc s3/ec2 endpoint urls but without result
martijnp
Novice
Posts: 7
Liked: 2 times
Joined: Dec 11, 2019 1:35 pm
Contact:

Re: Adding s3 bucket from backup for aws as an external repository

Post by martijnp »

ah i see this topic object-storage-f52/utilize-aws-direct-c ... 74179.html
think thats the same issue, so as i understand correctly in august there will be a new release 11a which will make this possible
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Adding s3 bucket from backup for aws as an external repository

Post by veremin »

Your understanding is correct. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests