Let’s start a simple CloudFormation to set up an S3 Bucket.
What is CloudFormation?
CloudFormation is one of the services provided by AWS to help set up Web Service resources. This means much less time is needed to set up a resource and concentrate on other applications/services which run across AWS.
How do we manage an AWS Resource?
The right answer will be - using Stack.
What is a Stack?
Stack is something like a grouping of n number of resources into a single unit. The resources which are defined in a stack are called templates.
So, to start with the stack, we just need some basic idea of writing JSON or YAML files and the services involved in AWS. To start here, I am going to show a demo on CloudFormation templates for creating a simple S3 Bucket. As I am running this on a Windows machine, I will be installing AWS CLI and then will be executing the templates.
To Install AWS CLI
- Browse the URL -> https://aws.amazon.com/cli/
- On the top left side, you could see the link to download for Windows 64-bit or 32-bit. Select the appropriate version needed and install it.

- Once installed, open the command prompt and enter the following command.
.
aws configure

It will prompt for AWS Access KeyID and Secret Key. Enter the credentials which were downloaded from the AWS account.
- Log in to AWS Web -> click on Security credentials under the name of yours listed on the top left corner.
- Click on Access Keys and note the keys listed. If not generated before, click on 'Create new Access Key' which will be downloaded in an Excel format.
- So once the Access keyID and Secret Key is provided in cmd prompt, we are ready to start with the Templates creation.


Join the conversation! Your thoughts help the community grow.