Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "template_file" "app" {
- template = "${file("${path.module}/init.sh")}"
- vars {
- TERRAFORM_db_host = "${var.rds_master}"
- TERRAFORM_db_user = "dfgdfg"
- TERRAFORM_db_pass = "dfgdfg"
- TERRAFORM_db = "sdfsdfsd"
- }
- }
- resource "aws_launch_configuration" "app" {
- name_prefix = "app_${var.env}_launchconfig"
- image_id = "${var.ami}"
- instance_type = "${var.instance_type}"
- key_name = "${var.key_name}"
- security_groups = ["${aws_security_group.vpc.id}","${aws_security_group.ssh.id}"]
- user_data = "${template_file.app.rendered}"
- iam_instance_profile = "${aws_iam_instance_profile.app_profile.name}"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement