In this recipe, we will create a stack using the CF template. First, fetch the CF template from this link https://github.com/awsstar/CF-Templates.git and use EC2firstExample.yaml to create a stack. This template will provision an EC2 instance using the default VPC and its subnet. It will also create a Security Group. After launching the instance, it will install HTTPD and pass some data in the index.html file. This template also requires a key pair needs to be created earlier. To do this, we have to perform the following steps:
- Go to the AWS console and click on CloudFormation in the Management section. Then, you will get a page as follows. Click on Create Stack:
- Once you click on Create Stack, you ...