Author: Not specified Language: erlang
Description: (v18) Timestamp: 2018-01-08 13:28:34 +0000
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply
resource "aws_launch_configuration" "example" {
image_id = "ami-40d28157"
instance_type = "t2.micro"
security_groups = ["${aws_security_group.instance.id}"]
user_data = <<-EOF #!/bin/bash
                  echo "Hello, World" > index.html
                  nohup busybox httpd -f -p "${var.server_port}" &
                  EOF
lifecycle { create_before_destroy = true
}
}
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply