Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-iconattach-eni
file-type-iconpersistent-ebs-volume
file-type-iconroute53-helpers
file-type-iconsingle-server
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-iconattach-eni
file-type-iconpersistent-ebs-volume
file-type-iconroute53-helpers
file-type-iconsingle-server
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
Single EC2 Instance

Single EC2 Instance

Run a single EC2 instance for stateless or stateful apps. Supports IAM roles, EBS volumes, ENIs, and EIPs.

Code Preview

Preview the Code

mobile file icon

vars.tf

down
  • # ----------------------------------------------------------------------------------------------------------------------
  • # REQUIRED PARAMETERS
  • # These variables must be passed in by the templates using this module.
  • # ----------------------------------------------------------------------------------------------------------------------
  • variable "name" {
  • description = "The name of the server. This will be used to namespace all resources created by this module."
  • type = string
  • }
  • variable "ami" {
  • description = "The ID of the AMI to run for this server."
  • type = string
  • }
  • variable "instance_type" {
  • description = "The type of EC2 instance to run (e.g. t2.micro)"
  • type = string
  • }
  • variable "vpc_id" {
  • description = "The id of the VPC where this server should be deployed."
  • type = string
  • }

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?