How to Deploy EC2 Instances in AWS using Terraform

In this story, we will learn to deploy both Linux and Windows EC2 Instances in AWS using Terraform.

And also, we will learn how to deploy applications or configure settings at boot time (bootstrapping).

1. Requirements

To deploy a Virtual Machine in AWS, we will need:

  • AWS Credentials

--

--

--

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Software development trends and predictions in 2021

AWS Application Load Balancer algorithms

Requests are sent to the target with the least outstanding requests at that time

Running Azurite in GitHub Actions

If you can’t put it in words, you can’t put it in code

Is AWS ready to provide serverless WebSockets at scale?

How we redesigned our APIs 👨‍🍳

Using ReactPHP to run Drupal tasks asynchronously

ReactPHP code

Solved: The parameter LinuxFxVersion has an invalid value — .NET6 & Linux

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
Guillermo Musumeci

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

More from Medium

How to Deploy a Debian Linux EC2 Instance in AWS using Terraform

Automate Infrastructure as Code with Terraform Cloud & GitHub

A Disposable Local Test Environment is Essential for DevOps / SysAdmin

Learn Auto Scaling in Alibaba Cloud — The console