DEV Community

Eutychus Towett
Eutychus Towett

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

1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay