Last article we studied what is AWS CloudFormation in this article we will create a basic AWS cloud formation template. To setup a template in AWS CloudFormation follow the steps below:-
Search for AWS CloudFormation in the search bar and go to AWS cloud formation
In the prepare template select
Template is ready
. Here we can select other options to like useSample template
which uses an already created template or you can also choose toCreate template in designer
which helps you create templates visually.
After that select
upload a template file
You can also select a templete file form your S3 bucket. Upload the followingaws-example.yaml
file
Resources:
HelloBucket:
Type: AWS::S3::Bucket
You can also click on View in Designer
to visually see how your stacks looks like
Click next enter a stack name like
CloudFormationdemo
and click next
Next you can add tags to identify your cloud formation resources and r
oles to give access to various services we don't need roles and set the tag as nameCloudFormation
you can use any other tag.
. Then click on next. You can review all your values are correct and click on create stack
It will show you all the events that happened while creating a cloud formation template
Go to your S3 console and you can see that there is a bucket Cloudformationdemo
This is way to create a Cloud Formation Stack don't forget to delete your CloudFormation stack if you are doing this as a demo
Next we will study about Amazon Beanstalk.
Top comments (0)