Till now, throughout the tutorial, we people have created instances multiple times in our account. In the real project in order to complete the application, we people need to depend on various services. For the developer, checking the project requirements and launching those services is our environment is time taking process. Moreover, as a project developer, we usually know the services that were required to launch the application. And it is an easy thing if we make all the required services at a single place as a single service. So once we launch this customized service, all the internal services will be started/ launched automatically. And we can launch this customized service through AWS Cloud Formation
What is CloudFormation?
AWS Cloud Formation is a service that helps to model and set up your Amazon Web services resources.
So with AWS CloudFormation, you can spend less time managing the resources as well as focus more time on running applications in AWS. So with AWS Cloud Formation, you can create a template that describes all the AWS resources that you need. Moreover, AWS Cloud Formation takes care of provisioning and configuring those resources. And you don't need to individually create and configure AWS resources. This AWS Cloud Formation provides the common language to describe and provision the infrastructure resources in the cloud environment. Besides, it allows to use a programming language (or) a simple text file to model and provision all the resources needed for your application across all the regions and applications. Besides, CloudFormation is available at no additional charge and allows you to pay for the resources that you need in your account.
So let us how to create the cloud formation in detail
step - 1:
Login to AWS Console and search for the Cloud Formation, then you can see the screen as follows:
step - 2:
Navigate to stacks and click on Create Stacks.
step - 3:
step - 3a:
Click on Use Sample Template.
step - 3b:
Click on View more Sample Templates
step - 4:
Click on Browse Sample templates
step - 5:
Scroll and select the service that you require and click over the Launch stack on your instance. ( Here, in this case, I'm selecting EC2).
step - 6:
Scroll down and copy the S3 URL.
step - 7:
step - 7a:
Navigate back to AWS Cloud Formation tab and click on Template ready
step - 7b:
Scroll down to specify a template and paste the URL that you copied in step - 6
step - 7c:
Click Next.
step - 8:
step - 8a:
Provide the stack name.
step - 8b:
Select the key pair that you have and click on Next
step - 9:
step - 9a:Provide the tag value.
step - 9b:
Select other features/ options that you require (Here I'm moving with the default) and click on Next.
step - 10:
Scroll down and click on Create stack.
So like this, we can create the cloud formation service in our account
Verification:
Navigate to EC2 instances and check the services that you are running.
So as shown above, if you have seen the instance running above then you succeed in creating the Cloud Formation.
And I hope you people have got enough information on this.
For further visit AWS Online Course