This bash script will be solution for https://github.com/Endava-Sofia/endava-devops-challenge Also can be used for creating AWS Key Pair, VPC, Secirity Groups, RDS, EC2 instance, Load Balancer for Web Application and CloudWatch Alerts. Script assume that user already install AWC CLI and configurate his/her account and Amazon SNS.
- Create a Key Pair.
- Create VPC, two public(for Load Balancer and EC2 instance) subnets, two private subnets(for EC2 instance and RDS service), Internet Gateway and routing table.
- Create VPC Security Group for SSH and HTTP, and access to RDS from EC2 instances.
- Create RDS Subnet group.
- Create RDS with mysql engine.
- Create two EC2 instances.
- Create Load Balancer Web Application with needed target group and listener.
- Create CloudWatch for EC2, DB RDS and Load Balancer with few alerms.
- Make the code more readable.
- Make the code more identical.
- Add Automate service-fail-over part in the script.
- https://github.com/kovarus/aws-cli-create-vpcs/blob/master/aws-cli-create-vpc.sh
- https://github.com/swoodford/aws/blob/master/cloudwatch-create-alarms.sh
- https://cloudaffaire.com/how-to-create-an-application-load-balancer-using-aws-cli/
- https://docs.aws.amazon.com/cli/latest/userguide/cli-services-ec2-instances.html
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/TUT_WebAppWithRDS.html
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-application-load-balancer-cli.html
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html