Skip to content

AWS.Tools.S3 Get-S3Bucket Access Denied #282

Answered by ashishdhingra
dburtsev asked this question in Q&A
Discussion options

You must be logged in to vote

aws s3 ls 'bucket_name'

@dburtsev Looks like you are mixing 2 commands. Those two commands are not the same thing.

  • Get-S3Bucket CmdLet is only listing buckets alias with a filter of one bucket. It is invoking ListBuckets service API operation.
  • Whereas the AWS CLI command aws s3 ls 'bucket_name' is listing objects in the bucket. It is invoking ListObjectsV2 service API operation (figured it out by using --debug flag). The corresponding PowerShell CmdLet for listing bucket objects is Get-S3Object, or better Get-S3ObjectV2.

Replies: 12 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ashishdhingra
Comment options

Comment options

You must be logged in to vote
1 reply
@ashishdhingra
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Cobra-James
Comment options

Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. module/powershell-cmdlets
3 participants
Converted from issue

This discussion was converted from issue #281 on August 04, 2022 19:52.