| 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