Skip to content

Commit

Permalink
fixed a few syntax errors with quotes and adjusted user_data block to…
Browse files Browse the repository at this point in the history
… be template_file
  • Loading branch information
davidfic committed Sep 13, 2017
1 parent 793ae1a commit 02befde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bootstrapping/aws/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ resource "aws_db_instance" "estate" {
username = "${db_user}"
password = "${db_password}"
vpc_security_group_ids = ["${aws_security_group.estate.name}"]
db_subnet_group_name = ${aws_db_subnet_group.estate.id}
db_subnet_group_name = "${aws_db_subnet_group.estate.id}"
skip_final_snapshot = "true"
backup_retention_period = 0
copy_tags_to_snapshot = "true"
Expand Down Expand Up @@ -113,7 +113,7 @@ resource "aws_elasticache_cluster" "estate" {
}
}

data "user_data" "estate" {
data "template_file" "estate" {
template = "${file("${path.module}/../shared/scripts/bootstrap.sh")}"

vars {
Expand All @@ -133,7 +133,7 @@ resource "aws_instance" "estate" {
ebs_optimized = true
disable_api_termination = true
root_block_device {
volume_type = gp2
volume_type = "gp2"
volume_size = "20"
delete_on_termination = true
}
Expand All @@ -143,7 +143,7 @@ resource "aws_instance" "estate" {
private_key = "${file("${var.key_path}")}"
}

user_data = "${data.user_data.estate.rendered}"
user_data = "${data.template_file.estate.rendered}"

tags {
Name = "${var.tagName}-${count.index}"
Expand Down

0 comments on commit 02befde

Please sign in to comment.