DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in

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

Image description
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. Image description Image description Image description Image description Image description Image description

Phase 2: Output of Key and Bucket with Customized Parameters

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

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
Image description

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.