codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Member-only story

Infrastructure as code - from Terraform to AWS

Travel Planner VIP
codeburst
Published in
6 min readMay 2, 2020

Photo by Michal Pech on Unsplash

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned

If you’ve worked with CloudFormation before, it is a similar concept as in it provisions infrastructure, but it has much greater power, as it can be run against multiple cloud providers, such as Amazon Web Services, Microsoft Azure and Google Cloud Platform.

Photo by Pero Kalimero on Unsplash

I find the best way to learn a new tool, or to improve is to get some hands on experience.

This post hopes to guide you through a basic scenario, of setting up some infrastructure using terraform in the AWS cloud platform.

Photo by Etienne Girardet on Unsplash

Prerequisites

Download terraform. It’s pretty simple on any operating system, and usually just involves downloading the binaries and adding them to the path of your shell.

Photo by Guilherme Cunha on Unsplash

Creating a user in AWS

In order to use terraform to provision infrastructure within AWS, you will need a way for terraform to authenticate with AWS. To do this, we are going to create a user in AWS, and…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Write a response