8000 GitHub - galkamay/Platform-Engineering: A CLI tool for managing AWS resources, including EC2 instances, S3 buckets, and Route 53 DNS records. Provides an efficient command-line interface to create, manage, and list AWS resources with Python and Boto3 integration.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A CLI tool for managing AWS resources, including EC2 instances, S3 buckets, and Route 53 DNS records. Provides an efficient command-line interface to create, manage, and list AWS resources with Python and Boto3 integration.

Notifications You must be signed in to change notification settings

galkamay/Platform-Engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Management CLI Tool

This CLI tool allows you to manage AWS resources: EC2 instances, S3 buckets, and Route 53 DNS records. It provides an easy way to create, list, and manage these resources directly from the command line.

Prerequisites

  • Python 3.x
  • AWS credentials configured with aws configure
  • Necessary permissions for EC2, S3, and Route53 resources.

Installation

Clone the repository and install any required packages:

git clone (https://github.com/galkamay/Platform-Engineering.git)
pip install -r requirements.txt

Usage

EC2 Management

Create an Instance

python main.py --resource ec2 --action create --ami <ami-id> --instance-type <instance-type> --name <instance-name> [--public-ip]

List Instances

python main.py --resource ec2 --action list

Manage Instance (start, stop, terminate)

python main.py --resource ec2 --action manage --instance-id <instance-id> --action <start|stop|terminate>

S3 Management

Create a Bucket

python main.py --resource s3 --action create --bucket-name <bucket-name> [--public]

Upload a File

python main.py --resource s3 --action upload --bucket-name <bucket-name> --file-path <file-path>

List Buckets

python main.py --resource s3 --action list

Delete a File from a Bucket

python main.py --resource s3 --action delete-file --bucket-name <bucket-name> --file-name <file-name>

Delete a Bucket

python main.py --resource s3 --action delete --bucket-name <bucket-name>

Route 53 Management

Create a Hosted Zone

python main.py --resource route53 --action create --domain <domain-name>

Add a DNS Record

python main.py --resource route53 --action add-record --zone-id <zone-id> --record-name <record-name> --record-value <record-value>

Update a DNS Record

python main.py --resource route53 --action update-record --zone-id <zone-id> --record-name <record-name> --record-value <record-value>

Delete a DNS Record

python main.py --resource route53 --action delete-record --zone-id <zone-id> --record-name <record-name> --record-value <record-value>

Dependencies

This project relies on the following dependencies:

  • boto3: AWS SDK for Python
  • argparse: Argument parsing for the command-line interface

Notes

  • Ensure you have appropriate permissions in AWS for the CLI commands to execute successfully.
  • Handle sensitive AWS information (like instance_id, zone_id) securely.

License

This project is licensed under the MIT License.

About

A CLI tool for managing AWS resources, including EC2 instances, S3 buckets, and Route 53 DNS records. Provides an efficient command-line interface to create, manage, and list AWS resources with Python and Boto3 integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0