Created
July 13, 2017 11:10
-
-
Save jpluscplusm/14e3e5cb346a986b39710c579184db84 to your computer and use it in GitHub Desktop.
Dagnammit, Terraform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_instance" "instance" { | |
ami = "ami-32rrg4334f" | |
instance_type = "t2.small" | |
subnet_id = "subnet-abc123dasf" | |
key_name = "key" | |
associate_public_ip_address = false | |
vpc_security_group_ids = [ | |
"${aws_security_group.1.id}", | |
"${aws_security_group.2.id}", | |
"${aws_security_group.3.id}", | |
"${aws_security_group.4.id}", | |
"${aws_security_group.5.id}" ] | |
tags { | |
Name = "A Server" | |
Class = "Server" | |
} | |
user_data = <<USERDATA | |
admin_user=foo | |
admin_pw=bar | |
other_setting=1 | |
USERDATA | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment