Articles → AWS → CloudFormation In AWS

CloudFormation In AWS






Purpose




  1. Create the same infrastructure components manually everywhere
  2. Use CloudFormation



Different Components Of CloudFormation


ComponentDescription
TemplatesThe JSON or YAML text file that contains the instructions for building out the AWS resources
StacksThe entire environment described by the template and created, updated, and deleted as a single unit
StackSetsAWS CloudFormation StackSets extends the functionality of stacks by enabling you to create, update, or delete stacks across multiple accounts and regions with a single operation
Change Sets A summary of proposed changes to your stack that will allow you to see how those changes might impact your existing resources before implementing them



Steps




  1. Create and save the template
  2. Create a stack with the template



Create And Save The Template




Picture showing the cloudformation service in the search result of the AWS console
Click to Enlarge



Picture showing the create stack button for creating the new infrastructure automation
Click to Enlarge



Picture showing selecting the Create template in Designer radio button
Click to Enlarge



Picture showing dragging and dropping the S3 bucket on the designer screen
Click to Enlarge





Picture showing the Save menu for saving the template
Click to Enlarge



Picture showing a popup window to specify the save location of the template
Click to Enlarge


Create A Stack With The Template




Picture showing creating the cloud formation by using template
Click to Enlarge



Picture showing the screen for specifying the stack name
Click to Enlarge



Picture showing the advanced options screen while creating the stack
Click to Enlarge



Picture showing the Create stack button for creating the new stack
Click to Enlarge



Picture showing the status of stack creation as in progress
Click to Enlarge



Picture showing the status of stack creation as completed
Click to Enlarge



Picture showing the creation of S3 bucket using the cloud formation in AWS
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 19, 2021
 
Updated On  -  Friday, September 16, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250