Skip to content

Commit

Permalink
FIX: Add module path for reading correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit Sarkar committed Jul 5, 2018
1 parent 4a10418 commit e39cd2f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "random_id" "server" {
}

data "template_file" "container_instance_cloud_config" {
template = "${file("cloud-config/ecs_cluster_init.cfg")}"
template = "${file("${path.module}/cloud-config/ecs_cluster_init.cfg")}"

vars {
aws_region = "${var.region}"
Expand All @@ -20,7 +20,7 @@ data "template_file" "container_instance_cloud_config" {
}

data "template_file" "instance_role_policy" {
template = "${file("roles/instance_role_policy.tpl")}"
template = "${file("${path.module}/roles/instance_role_policy.tpl")}"

vars {
account_id = "${data.aws_caller_identity.current.account_id}"
Expand Down
30 changes: 30 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,33 @@ output "internal_dns_name" {
output "external_dns_name" {
value = "${module.external_alb.dns_name}"
}

output "external_alb_http_tcp_listener_arns" {
description = "The ARN of the TCP and HTTP load balancer listeners created."
value = "${module.external_alb.http_tcp_listener_arns}"
}

output "external_alb_http_tcp_listener_ids" {
description = "The IDs of the TCP and HTTP load balancer listeners created."
value = "${module.external_alb.http_tcp_listener_ids}"
}

output "external_https_listener_arns" {
description = "The ARNs of the HTTPS load balancer listeners created."
value = "${module.external_alb.https_listener_arns}"
}

output "external_https_listener_ids" {
description = "The IDs of the load balancer listeners created."
value = "${module.external_alb.https_listener_ids}"
}

output "internal_alb_http_tcp_listener_arns" {
description = "The ARN of the TCP and HTTP load balancer listeners created."
value = "${module.internal_alb.http_tcp_listener_arns}"
}

output "internal_alb_http_tcp_listener_ids" {
description = "The IDs of the TCP and HTTP load balancer listeners created."
value = "${module.internal_alb.http_tcp_listener_ids}"
}

0 comments on commit e39cd2f

Please sign in to comment.