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 » Jul 11, 2019 6:23 am

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: 16789
Liked: 1411 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 » Jul 11, 2019 4:49 pm

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 » Jul 11, 2019 5:00 pm

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: 16789
Liked: 1411 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 » Jul 11, 2019 6:04 pm

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 » Jul 11, 2019 6:15 pm

account variable value looks ok and still its a same issue please let me know how to resolve this issue

veremin
Product Manager
Posts: 16789
Liked: 1411 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 » Jul 11, 2019 6:16 pm

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 » Jul 12, 2019 3:13 am

Can you provide me support team contact details and also can you please provide case id for my reference .

veremin
Product Manager
Posts: 16789
Liked: 1411 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 » Jul 12, 2019 12:51 pm

You can open support ticket here. Thanks!

Andreas Neufert
Veeam Software
Posts: 3764
Liked: 669 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 » Jul 15, 2019 9:18 am

03663810

veremin
Product Manager
Posts: 16789
Liked: 1411 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 » Jul 15, 2019 11:15 am

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 5 guests