An AWS Provisioning Tool
Project description
# AWS Provisioning Tool
This project this target to automate the AWS provisioning process for ec2 and route53
### Prerequisites
This code is tested with python 2.7, addtional modules (prettytable, boto3, paramiko) are required which will be installed automaticlly.
Need to configure following at home directory.
#### For Linux and Mac.
```
~/.aws/config
~/.aws/credentials
```
#### For Windows.
```
"%UserProfile%"/.aws/config
"%UserProfile%"/.aws/credentials
```
#### config file details
```
[default]
region=ap-southeast-1
output=json
```
#### credentials file details
```
[account1]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
[account2]
aws_access_key_id=AKIAIOSFODNN7TEST
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYTESTKEY
```
### Installing
* I have tested working on Mac and Linux
* sudo pip install aws_toolkit==1.0.1
## How to use it
```
from awspackage import aws
myaws = aws.AWS("ROUTE53_Domain",
"VM Access KEY full path")
myaws.main()
```
* Could select the account to provision based on the section
* AWS_ID refer to the AWS console ID
* AWS_KEY refer to the aws console secrect key
* ROUTE53_Domain refer to the domain name that registered to the AWS under the same account, eg. cjaiwenwen.com (Put dummy data if you dont have route53 service)
* VM ACCESS KEY full path refer to the local pem key path eg, /Users/cjaiwenwen/Desktop/chenjun.pem
## What can the library could achieve
* Create instance on any region if the VPC has been already created
* Control the number of the VMs could provisioned
* Choose the AMI image
* Choose the subnets
* Choose the security group
* Modify the security group rules if need to be
* Choose the size of the VM
* Assign CNAME for the provisioned VM
* Continue ping the provisioned host
* SSH to the host to confirm accessible (need to add ssh incoming rule)
## Authors
* **Chen Jun** - *Initial work* - [CJAIWENWEN](https://github.com/cjaiwenwen)
## Connect with me on Linkedin
[Chen Jun](https://www.linkedin.com/in/cjaiwenwen/)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
This project this target to automate the AWS provisioning process for ec2 and route53
### Prerequisites
This code is tested with python 2.7, addtional modules (prettytable, boto3, paramiko) are required which will be installed automaticlly.
Need to configure following at home directory.
#### For Linux and Mac.
```
~/.aws/config
~/.aws/credentials
```
#### For Windows.
```
"%UserProfile%"/.aws/config
"%UserProfile%"/.aws/credentials
```
#### config file details
```
[default]
region=ap-southeast-1
output=json
```
#### credentials file details
```
[account1]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
[account2]
aws_access_key_id=AKIAIOSFODNN7TEST
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYTESTKEY
```
### Installing
* I have tested working on Mac and Linux
* sudo pip install aws_toolkit==1.0.1
## How to use it
```
from awspackage import aws
myaws = aws.AWS("ROUTE53_Domain",
"VM Access KEY full path")
myaws.main()
```
* Could select the account to provision based on the section
* AWS_ID refer to the AWS console ID
* AWS_KEY refer to the aws console secrect key
* ROUTE53_Domain refer to the domain name that registered to the AWS under the same account, eg. cjaiwenwen.com (Put dummy data if you dont have route53 service)
* VM ACCESS KEY full path refer to the local pem key path eg, /Users/cjaiwenwen/Desktop/chenjun.pem
## What can the library could achieve
* Create instance on any region if the VPC has been already created
* Control the number of the VMs could provisioned
* Choose the AMI image
* Choose the subnets
* Choose the security group
* Modify the security group rules if need to be
* Choose the size of the VM
* Assign CNAME for the provisioned VM
* Continue ping the provisioned host
* SSH to the host to confirm accessible (need to add ssh incoming rule)
## Authors
* **Chen Jun** - *Initial work* - [CJAIWENWEN](https://github.com/cjaiwenwen)
## Connect with me on Linkedin
[Chen Jun](https://www.linkedin.com/in/cjaiwenwen/)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aws_toolkit-1.0.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for aws_toolkit-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70bf29b42897fa49247a0a4f646c34ba496476bf66d81088b8ac139a0e34e4c5 |
|
MD5 | cd53d20b4f8d00dbfe823b934cb5c3af |
|
BLAKE2b-256 | 9a54f1ff41f5a4717f050992158c4c7dab5156aa2e3cb44652976c112c316521 |