Search code examples
amazon-web-servicesamazon-s3privatecredentialsbucket

How to Access an AWS Private Bucket


I'm a beginner in AWS and I'm trying some functions, if you can help me I thank.

I received a file of credentials to access a private bucket, but I don't know how to access that bucket, whether it is by CMD or the internet itself, I tested a public bucket and through the browser I can access these files by downloading directly from the link, but I would like to know how do I access this private bucket with the credentials I received

Thank you for your attention


Solution

  • Install the awscli, configure it with your credentials, then use the awscli with S3.

    Here are a couple of examples:

    • aws s3 ls mybucket (list bucket)
    • aws s3 cp s3://mybucket/dogs/bingo.png . (copy file from S3)