--> The soultion will retuen the below:-
Curl of Load Balancer will return a “Hello World” and the instance identifier id that is being served by one of the web servers. Removal of either one web servers should automatically fail over to the other server.
--> The template will create the following resources in the AWS:-
- VPC
- Subnets
- EC2 Instances
- Application Load Balancer
- Target Groups
--> Below are the required steps for running the template:-
- First create a key-pair in AWS account, as it will be required as parameter in the template.
- Pass the key-pair name created in the Step 1.
Ex. aws cloudformation create-stack --stack-name alation-assignment-solution --template-body file://template_alation.yml --parameters SSHKeyName=KeyPairName