AWS CloudFormation

  • Post category:Solutions
  • Reading time:2 mins read

Amazon Web Services CloudFormation enables you to provision resources in a safe, repeatable manner, so you do not have to write scripts or perform manual actions when building and rebuilding your infrastructure and applications.

Let’s create CloudFormation

  • Sign in to AWS Management Console and enter “CloudFormation” in the search field.
  • You will see the CloudFormation dashboard
  • On the left, click Stacks
  • Click on Create stack
  • For all CloudFormation templates to work correctly, please select region North Virginia us-east-1

Azure Cloudinformation

  • As you can see, the templates are ready so please click on Template is ready
  • Our next step will be to upload a template file by selecting Upload a Template File and choosing the file to upload
  • Click on Next

AW Cloudinformation

  • The second step is to name the stack “first-stack”
  • As of right now, we don’t have any parameters; click Next
  • In step3 we don’t have Tags and also no specific permissions, leave the options as default
  • Click on Next
  • In step 4 you can see a template URL that we have uploaded to CloudFormation
  • Scroll down and click on Create Stack
  • Now this will go ahead and will create our first CloudFormation stack
  • It will take few minutes to create a stack

AWS Cloudformation

  • You will see that the new instance is created when you refresh the page after a few minutes.

AWS Cloudformation

  • You can see an instance created by clicking on Services > EC2.
  • When you select that instance and click on Tags, you will see some CloudFormation informationAWS Cloudformation
  • You can access the EC2 instance by clicking on the ‘Resources’ tab. This shows everything that was created by our CloudFormation stack

AWS Cloudformation

  • The template we used to create the stack can be found on the Templates tab
  • For a visual representation, click View in Designer

Congratulations!!  You have created your first CloudFormation stack and an EC2 instance for us, and we are starting to see the potential of Infrastructure as a Code

Leave a Reply