DEV Community

Eutychus Towett
Eutychus Towett

Posted on • Edited on • Originally published at citizix.com

How to launch an EC2 Instance with Terraform

Terraform is an open-source infrastructure as code software tool created by HashiCorp. To use terraform, you define the resources you want to create using a declarative configuration language created by Hashicorp known as HashiCorp Configuration Language (HCL), or optionally JSON.

AWS is a popular cloud provider similar to Azure and GCP.

In this guide, we will see how to:

  • Define a provider
  • Define Terraform Version to use
  • Define variables
  • Create a Key Pair
  • Create an EC2 instance
  • Define a Security Group
  • Define outputs

Checkout the full guide here

Top comments (0)