Skip to content

Commit

Permalink
(Chore) Add IAM role outputs (#38)
Browse files Browse the repository at this point in the history
* Outputs a map with the IAM role's name and arn
  • Loading branch information
Stretch96 authored and tfhartmann committed Mar 29, 2019
1 parent b0962e1 commit 91a02cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Outputs
- `cluster_id` - _(String)_ ECS Cluster id for use in ECS task and service definitions.
- `cluster_name` - (String) ECS Cluster name that can be used for CloudWatch app autoscaling policy resource_id.
- `autoscaling_group` _(Map)_ A map with keys `id`, `name`, and `arn` of the `aws_autoscaling_group` created.
- `iam_role` _(Map)_ A map with keys `arn` and `name` of the `iam_role` created.

Authors
=======
Expand Down
7 changes: 7 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ output "autoscaling_group" {
arn = "${aws_autoscaling_group.ecs.arn}"
}
}

output "iam_role" {
value = {
name = "${aws_iam_role.ecs_role.name}"
arn = "${aws_iam_role.ecs_role.arn}"
}
}

0 comments on commit 91a02cb

Please sign in to comment.