Skip to content

Commit

Permalink
exposes instance role outputs to allow additional attachments (#41)
Browse files Browse the repository at this point in the history
* fix: adds `instance_role_arn` and `instance_role_id` outputs

* fix: fixes compatibility with terraform-provider-aws:2
  • Loading branch information
cludden authored and antonbabenko committed Mar 10, 2019
1 parent c31f66e commit 9cd0c18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 1 addition & 5 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
data "aws_ami" "ecs_ami" {
most_recent = true

filter {
name = "owner-alias"
values = ["amazon"]
}
owners = ["amazon"]

filter {
name = "name"
Expand Down
8 changes: 8 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ output "cluster_name" {
value = "${aws_ecs_cluster.cluster.name}"
}

output "instance_role_arn" {
value = "${aws_iam_role.ecs_role.arn}"
}

output "instance_role_id" {
value = "${aws_iam_role.ecs_role.id}"
}

output "autoscaling_group" {
value = {
id = "${aws_autoscaling_group.ecs.id}"
Expand Down

0 comments on commit 9cd0c18

Please sign in to comment.