Skip to content

Instantly share code, notes, and snippets.

@JJetmar
Last active October 9, 2025 09:40
Show Gist options
  • Select an option

  • Save JJetmar/c96ab4f93d004a8a0e342f99249564ee to your computer and use it in GitHub Desktop.

Select an option

Save JJetmar/c96ab4f93d004a8a0e342f99249564ee to your computer and use it in GitHub Desktop.

Login

aws sso login --profile my-profile

(or maybe) Configure

aws configure

Listing objects inside bucket

aws s3api list-objects-v2 --bucket my-bucketname --prefix 1E321DB7-DF1B-4443-9A3D-C91378364F0D.jpg

aws s3 ls s3://{YOUR_BUCKET} --recursive --human-readable --summarize

Removing objects by prefix

aws s3 rm s3://{YOUR_BUCKET} --recursive --exclude "*" --include "JSON/*"

Copy object by name

aws s3 cp s3://{YOUR_BUCKET}/SCREENSHOT/2ECCA0BA-2C46-4F05-9BB8-CF1A99BEBDDB_ss.jpg 2ECCA0BA-2C46-4F05-9BB8-CF1A99BEBDDB_ss.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment