This repository contains a simple Python script that demonstrates how to create an Amazon S3 bucket using Boto3, the AWS SDK for Python.
Amazon S3 (Simple Storage Service) is a secure, durable, and highly scalable object storage service provided by Amazon Web Services (AWS). It allows you to store and retrieve any amount of data at any time, making it ideal for various use cases such as data backup, static website hosting, data archiving, and more.
- Creates a new AWS S3 bucket in the specified region using Python and Boto3.
- Generates a unique bucket name using UUID to ensure global uniqueness.
- Simplified Python code with minimal dependencies.
- Python 3.x installed on your local machine.
- AWS credentials configured with the necessary permissions to create S3 buckets.
- Boto3 library (
pip install boto3
) and AWS CLI (pip install awscli
) installed.
- Clone this repository to your local machine.
- Open
create_bucket.py
in your preferred code editor (e.g., Visual Studio Code). - Replace
'your_bucket_name'
with your desired bucket name in the script. - Set your AWS region in the
region
variable (e.g.,'us-west-2'
). - Run the script using
python create_bucket.py
in the terminal.
- Ensure that your AWS credentials are properly configured on your machine before running the script. You can use the AWS CLI (
aws configure
) to set up your credentials. - Bucket names must be globally unique across all AWS accounts.
This project is licensed under the MIT License.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to create a pull request.
This repository is intended for educational and demonstration purposes. Always ensure that you follow AWS best practices and security guidelines while working with AWS services.