How to Create CloudFormation Stack on AWS
AWS CloudFormation provides users with a simple way to create and manage a collection of Amazon Web Services (AWS) resources by provisioning and updating them in a predictable way. AWS CloudFormation enables you to manage your complete infrastructure or AWS resources in a text file.
- Login to aws portal.
- Click on Services.

- Under Management & Governance select CloudFormation.

- Click on Create Stack.

- When we select template source.
- We can Upload template file from local or Amazon S3 file.

- When we select create template in designer.
- Click on Create template in designer.

- Write the code in json or yaml format.

- After the code is ready then click on upload.

- Template will be stored on Amazon S3.
- Click on Next.

- Provide the stack name.
- Provide all parameters.
- Click on Next.

- Provide key name & value for resources in stack.

- Leave the advance options.
- Click on Next.

- Review all the configuration.

- Click on Create stack.

- After sometime Stack is ready.

Create CloudFormation Stack using Shell
- Setup aws-cli on your system so click on link https://www.hackerxone.com/blog/how-install-configure-aws-cli-ubuntu-1804
- Run the following command:
aws cloudformation create-stack –stack-name myteststack –template-body path of json folder –parameters ParameterKey=KeyPairName,ParameterValue=TestKey ParameterKey=SubnetIDs,ParameterValue=SubnetID1
