Skip to content

Commit 5e12c99

Browse files
authored
Add task definition and execution role outputs (#19)
* Added execution role to module outputs * Added task definition outputs
1 parent 7ee0a7a commit 5e12c99

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

outputs.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,23 @@ output "log_group_name" {
3737
description = "The name of the Cloudwatch log group for the task."
3838
value = aws_cloudwatch_log_group.main.name
3939
}
40+
41+
output "execution_role_arn" {
42+
description = "The Amazon Resource Name (ARN) specifying the ECS execution role."
43+
value = aws_iam_role.execution.arn
44+
}
45+
46+
output "execution_role_name" {
47+
description = "The name of the ECS execution role."
48+
value = aws_iam_role.execution.name
49+
}
50+
51+
output "task_definition_arn" {
52+
description = "The Amazon Resource Name (ARN) of the task definition created"
53+
value = aws_ecs_task_definition.task.arn
54+
}
55+
56+
output "task_definition_name" {
57+
description = "The name of the task definition created"
58+
value = aws_ecs_task_definition.task.arn
59+
}

0 commit comments

Comments
 (0)