AWS S3 Bucket Command References

03:14 Posted by Ali Hassan Ghori

# List all buckets

aws s3 ls


# List content of a bucket

aws s3 ls s3://<bucket>


# Create a bucket

aws s3 mb s3://<bucket>


# Copy into bucket

aws s3 cp <path> s3://<bucket>


# Copy from bucket

aws s3 cp s3://<bucket> <path>


# Remove empty bucket

aws s3 rb s3://<bucket>


# Remove object from bucket

aws s3 rm s3://<bucket>/<path>