resource "aws_launch_configuration" "secondary" {
  depends_on = ["aws_subnet.secondary"]
  name          = "web_config_secondary"
  image_id      = "${data.aws_ami.amazon_windows_2012R2.id}"
  instance_type = "${var.ami_type}"
  security_groups = ["${aws_security_group.secondary.id}"]
  user_data = "${file("user_data.txt")}"
  # user_data=<<-EOF
  #   Set-ExecutionPolicy Unrestricted
  #   "C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe" "﻿. { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chefdk -channel stable -version 1.3.43"
  # EOF
  key_name = "testKey"
}
