Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Terraform Enterprise Demo - AWS EC2 Instance

Notifications You must be signed in to change notification settings

multicloud-iac/web-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provision an EC2 instance in AWS

This Terraform configuration provisions an EC2 instance in AWS using Terraform 0.12+ syntax.

Details

By default, this configuration provisions the latest Ubuntu 18.04 AMI with type t2.micro in the us-west-1 region. The AMI Owner, AMi Search Name, region, and type can all be set as variables. You can also set the name variable to determine the value set for the Name tag.

Note that you need to set environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.