Skip to content

Python CLI Tool automate the daily EC2 tasks with ease

Notifications You must be signed in to change notification settings

sidhu2003/PyEC2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyEC2 Automation Project

pyEC2, a Python library for interacting with Amazon EC2 instances, to automate various tasks related to EC2 management. The automation scripts provided here can be used to perform common tasks such as instance provisioning, deployment, monitoring, and termination.

f485018582ea5f54dfe56d222a0b901e.png

Requirements

Ensure you have the following prerequisites installed:

  • Python 3.x
  • boto3 library (pip install boto3)
  • AWS CLI configured with necessary permissions

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/sidhu2003/PyEC2.git
  2. Navigate to the project directory:

    cd pyEC2
  3. Install required Python packages:

    pip install -r requirements.txt

Configuration

Before running the scripts, make sure to set up your AWS credentials and configure the desired settings using aws cli.

  1. Configure AWS credentials:

    Ensure that your AWS credentials are set up either by exporting them as environment variables or by using the AWS CLI aws configure command.

Usage

Provisioning EC2 Instances

To provision EC2 instances using the configured parameters, run:

python main.py

Additional Notes

  • Logging: The scripts utilize Python's logging module to capture runtime information and errors. Logs are stored in pyEC2.log.

  • Error Handling: Error handling is implemented to manage exceptions that may occur during API calls or resource provisioning.

  • Security: Ensure that your AWS credentials are kept secure and not exposed in the source code or version control.

Contributing

Contributions to enhance this project are welcome! Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License.


Feel free to customize this README.md template further based on the specifics of your project and the features you've implemented. Replace placeholders with actual values and expand sections to include more detailed instructions or explanations as needed. Happy documenting!

About

Python CLI Tool automate the daily EC2 tasks with ease

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages