vpc.sh is a shell script that creates AWS VPC/EC2 resources.
I use it to quickly spin up some subnets and an EC2 resource for testing purposes when I can't be bothered with CloudFormation.
All you need is the vpc.sh file. You will need to have installed Amazons AWS CLI and configured it with your user credentials. Information on install the AWS CLI can be found here - https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html and here https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
You will need to install jq a JSON parser and have the AWS CLI installed and configured.
./vpc.sh
Run the above command to start the shell script and follow the prompts
It will create the following resources/configuration:
VPC
Two Subnets
Internet Gateway attached to VPC
Create route for IGW in main route table
Configure subnet1 to issue public IP addresses for EC2 instances
EC2 keypair with associated .pem file
EC2 Security Group with an inbound security rule
EC2 instance
It will create the following local files:
igw.json
instances.json
private-rt.json
public-rt.json
subnet1.json
subnet2.json
test-keypair.pem (EC2 keypair private key)
vpc.json
Once all AWS resources are created you can pause the script or exit it (control+c) at the point where it asks "Terminate created AWS resources?". If you continue it will delete all previously created AWS resources.
If you want to contact me send an email to enquiries@awsmadesimple.co.uk and I'll get back to you within a reasonable timescale.
See license.txt file