Skip to content

Instantly share code, notes, and snippets.

@dehio3
Created May 14, 2019 07:17
Show Gist options
  • Save dehio3/d826041273aa2759a5a60f83aa57f9bc to your computer and use it in GitHub Desktop.
Save dehio3/d826041273aa2759a5a60f83aa57f9bc to your computer and use it in GitHub Desktop.
module "ec2_test" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "1.21.0"
name = "ec2-test"
instance_count = 1
ami = "ami-0b8d0d6ac70e5750c" #amzn2-ami-hvm-2.0.20181114-x86_64-ebs
instance_type = "t2.micro"
key_name = "test-key"
monitoring = false
vpc_security_group_ids = ["<vpc_security_group_ids>"]
subnet_id = "<subnet_id>"
tags = {
Name = "ec2-test"
Terraform = "true"
Environment = "dev"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment