a) Create an IAM role for CloudFormation that has permissions to create the following resources.
- EC2
- Auto Scaling
- VPC and inheritance, Load Balancer
- Security Groups
- CF Stack
b) Create a CloudFormation stack with this JSON template.
c) Use the CloudFormation IAM role and attach a key pair and proceed to create the stack.
d) The stack should be created without any errors and can be seen in the image below.