Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. resource "template_file" "app" {
  2. template = "${file("${path.module}/init.sh")}"
  3.  
  4. vars {
  5. TERRAFORM_db_host = "${var.rds_master}"
  6. TERRAFORM_db_user = "dfgdfg"
  7. TERRAFORM_db_pass = "dfgdfg"
  8. TERRAFORM_db = "sdfsdfsd"
  9. }
  10. }
  11.  
  12. resource "aws_launch_configuration" "app" {
  13. name_prefix = "app_${var.env}_launchconfig"
  14. image_id = "${var.ami}"
  15. instance_type = "${var.instance_type}"
  16. key_name = "${var.key_name}"
  17. security_groups = ["${aws_security_group.vpc.id}","${aws_security_group.ssh.id}"]
  18. user_data = "${template_file.app.rendered}"
  19. iam_instance_profile = "${aws_iam_instance_profile.app_profile.name}"
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement