Gargee Bhatnagar
Published in

Gargee Bhatnagar

Explore! Customized Cloudformation Parameters of KMS and S3

“ I have checked the documents of AWS to use automated service for creation of s3 and kms. Using cloudformation it’s very easy to create a bucket and a custom key. Pricing of S3 is cheaper to store the objects and Kms custom keys cost $1 per key.”

AWS CloudFormation is a service that helps you model and set up your AWS resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. You create a template that describes all the AWS resources that you want (like Amazon EC2 instances or Amazon RDS DB instances), and CloudFormation takes care of provisioning and configuring those resources for you. You don’t need to individually create and configure AWS resources and figure out what’s dependent on what; CloudFormation handles that.

In this post, you will get to know how to customize the cloudformation parameters of KMS and S3. Here I have used a cloudformation stack which creates the customized parameters for kms and s3.

Architecture Overview

The architecture diagram shows the overall deployment architecture with data flow, cloudformation, amazon s3, aws kms.

Solution overview

The blog post consists of the following phases:

  1. Launch of Stack for KMS and S3
  2. Output of Key and Bucket with Customized Parameters

Phase 1: Launch of Stack for KMS and S3

  1. Open the cloudformation console, create a stack for kms and s3 as template.yaml file. Kms stack creates customer managed keys with required policy. S3 stack creates buckets with its encryption using kms key and s3 managed keys.

Phase 2: Output of Key and Bucket with Customized Parameters

  1. Open the s3 and kms console, check the buckets and key created.

Clean-up

Delete Cloudformation stack and S3 buckets.

Pricing

I review the pricing and estimated cost of this example.

Cost of S3 = $0.009

Cost of Key Management Service = $1.0

Total Cost = $(1.0+0.009) = $1.009

Summary

In this post, I showed “how to customize the cloudformation parameters of KMS and S3”.

For more details on CloudFormation, Checkout Get started CloudFormation, open the CloudFormation console. To learn more, read the CloudFormation documentation.

Thanks for reading!

Connect with me: Linkedin

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gargee Bhatnagar

Gargee Bhatnagar

80 Followers

DevOps Engineer and AWS Solution Architect in Electromech Corporation