A Python script to interact with AWS S3 buckets, allowing users to list buckets, navigate directories, and download objects and directories.
- List all S3 buckets in your AWS account.
- Navigate through directories within a specified S3 bucket.
- List objects in a bucket or a specific directory.
- Download individual objects or entire directories from S3.
- Download all objects within a bucket to a local directory.
- Python 3.x
- AWS account with S3 access.
- AWS CLI configured with profiles in
~/.aws/credentials
.
-
Clone this repository:
git clone https://github.com/stuxMY/lazys3.git cd lazys3 pip install -r requirements.txt chmod +x lazys3.py ./lazys3.py
Ensure your AWS credentials are set up correctly in ~/.aws/credentials. The format should be:
[profile_name]
aws_access_key_id=YOUR_ACCESS_KEY
aws_secret_access_key=YOUR_SECRET_KEY