Lab 17:To configure Amazon Cloud Formation

                                          Lab 17:To configure Amazon Cloud Formation

Objective:

To configure AWS Cloud Formation

Topology:



Pre-Requites:

User Should have AWS account ,or IAM user with Cloud Formationfullaccess

Task:

Creating EC2 instance using CloudFormation
Deleting all resourcing from Cloud Formation

Practical Steps:

1.To Launch Amazon Ec2 instance in a security group using cloud Formation

Open AWS console
Click on services
In management Tools services
Click on Cloud Formation service




2.To create a new stack

On "create stack",page
Click on "Create New Stack"button




under "choose a template"
select "select a sample template"



on create stack page 
Select the "Sample template"
in Drop down box
Choose "sample templates"option



On "AWS cloud Formation Templates" page
Click on "simple templates"



under topis
Select Amazon EC2



Select "amazonEc2 instance in security group",
click on "Launch Stack"




In option "specify an "Amazon S3 template URL"
verify template is loaded in S3
click on Next button



on specific Details page
Key Name------->"key *.pem
click on Next button



Under options tag,provide values for
key--------------->Nameweb
value------------>web
Drag Down




click on Next




Review ,check the summary



click on Create button



check the status
Cloud Formation is in progress state




verify
status is create complete 




Go to EC2 service
Check the instances
An instance with the Name "web" is launched




3.To remove the instances created by Cloud Formation

From AWS console
select Services Management tools
Select Cloud Formation
select the stack Name check box




Click on Actions button
Select "Delete Stack"



click on "Yes,Delete"



verify
Deletion is in progress




Verification
After deletion again starting screen of Cloud Formation is displayed



Comments