PowerShell script exchange
Post Reply
supreeth@hpe.com
Novice
Posts: 4
Liked: never
Joined: Jul 11, 2019 6:02 am
Full Name: supreeth
Contact:

Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by supreeth@hpe.com »

I am facing issue while accessing S3 bucket using powershell (Get-VBRAmazonS3Bucket) command , In AWS-UI able to see all the buckets which are created recently
But in powershell after making connectivity to AWS , while executing Get-VBRAmazonS3Bucket powershell command to fetch details of s3 bucket following error it displays .

Error:
"Get-VBRAmazonS3Bucket : Amazon s3 buckets with the specified name does not exist: <bucket name >"

Can you please let me know how to fetch the already created bucket S3 details using power shell ?

PS : all the existing buckets are in the same region .
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by veremin »

Can you:

- tell us whether the given buckets are shown in backup server UI
- provide us with the full script

Thanks!
supreeth@hpe.com
Novice
Posts: 4
Liked: never
Joined: Jul 11, 2019 6:02 am
Full Name: supreeth
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by supreeth@hpe.com »

tell us whether the given buckets are shown in backup server UI
Yes ,I am able to see the buckets in the UI
- provide us with the full script

Code: Select all

Code :
PS C:\script> $con = $null
PS C:\script> $connect = $null
PS C:\script> $account = $null
PS C:\script> $region =$null
PS C:\script> $account = Get-VBRAmazonAccount
PS C:\script> $connect = Connect-VBRAmazonS3Service -Account $account[1] -RegionType Global -ServiceType CapacityTier
PS C:\script> $bucket = Get-VBRAmazonS3Bucket -Connection $connect -Name "tempbucket-blr"  //( This bucket existing one )
Get-VBRAmazonS3Bucket : Amazon S3 bucket with the specified name does not exist: tempbucket-blr
At line:1 char:11
+ $bucket = Get-VBRAmazonS3Bucket -Connection $connect -Name "tempbucke ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-VBRAmazonS3Bucket], Exception
    + FullyQualifiedErrorId : GetVBRAmazonS3Bucket,Veeam.Backup.PowerShell.Cmdlets.GetVBRAmazonS3Bucket

PS C:\script> $region = Get-VBRAmazonS3Region -Connection $connection
PS C:\script> $region

Id           Type
--           ----
ap-south-1 Global


PS C:\script> $bucket = Get-VBRAmazonS3Bucket -Connection $connect
PS C:\script> $bucket

Region     Name
------     ----
ap-south-1 newpowershell  //( this bucket is already deleted but still its displaying in powershell)
ap-south-1 simplivitydemo
ap-south-1 simplivityveeam //( this bucket is already deleted but still its displaying in powershell)
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by veremin »

Everything looks OK.

You can double check whether the script selects the proper account ($account), but other than that I don't see any issues.

If the issue persists, kindly, reach our support team for further assistance. Once you do that, post here support case Id, so that, we can investigate the issue internally.

Thanks!
supreeth@hpe.com
Novice
Posts: 4
Liked: never
Joined: Jul 11, 2019 6:02 am
Full Name: supreeth
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by supreeth@hpe.com »

account variable value looks ok and still its a same issue please let me know how to resolve this issue
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by veremin »

Reach our support team and provide the case Id here, so that, I can ask corresponding team to take a look at this problem. Thanks!
supreeth@hpe.com
Novice
Posts: 4
Liked: never
Joined: Jul 11, 2019 6:02 am
Full Name: supreeth
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by supreeth@hpe.com »

Can you provide me support team contact details and also can you please provide case id for my reference .
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by veremin »

You can open support ticket here. Thanks!
Andreas Neufert
VP, Product Management
Posts: 6707
Liked: 1401 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by Andreas Neufert »

03663810
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Not able fetch details of a s3 bucket using Get-VBRAmazonS3Bucket cmd

Post by veremin »

Have you can tried to disconnect the AWS service and re-connect it back? Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests