Instantly share code, notes, and snippets.

anonymous /gist:380eecc70e447c195583 Secret
Created Feb 1, 2016

Embed
What would you like to do?
resource "aws_instance" "chef" {
name = "chef_server"
image_id = "ami-c5b7d8b2"
instance_type = "t2.micro"
security_groups = ["${aws_security_group.web-instance.id}"]
user_data = ${file("chef-server-install.sh")}
provisioner "local-exec" {
command = "sudo bash user_data"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment