Creating stack using the CF template

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:

  1. 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:
  1. Once you click on Create Stack, you ...

Get AWS Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.