Skip to content

Commit cb730ff

Browse files
committed
adding ec2
1 parent beda3ed commit cb730ff

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ No resources.
152152
| <a name="output_ecs_service_arn"></a> [ecs\_service\_arn](#output\_ecs\_service\_arn) | The ARN of the ECS service |
153153
| <a name="output_ecs_service_name"></a> [ecs\_service\_name](#output\_ecs\_service\_name) | The name of the ECS service |
154154
| <a name="output_ecs_task_definition_arn"></a> [ecs\_task\_definition\_arn](#output\_ecs\_task\_definition\_arn) | The ARN of the ECS task definition |
155+
| <a name="output_ecs_task_role_arn"></a> [ecs\_task\_role\_arn](#output\_ecs\_task\_role\_arn) | The ARN of the IAM role assigned to the ECS task |
155156
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
156157

157158
## Development

outputs.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
output "ecs_cluster_name" {
22
description = "The name of the ECS cluster"
3-
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_service : null
3+
value = length(module.ecs_cluster) > 0 ? module.ecs_cluster[0].ecs_cluster : null
44
}
55

66
output "ecs_service_name" {
77
description = "The name of the ECS service"
8-
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_service_name : null
8+
value = length(module.ecs_service) > 0 ? module.ecs_service[0].service_name : null
99
}
1010

1111
output "ecs_service_arn" {
@@ -17,3 +17,8 @@ output "ecs_task_definition_arn" {
1717
description = "The ARN of the ECS task definition"
1818
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_task_definition_arn : null
1919
}
20+
21+
output "ecs_task_role_arn" {
22+
description = "The ARN of the IAM role assigned to the ECS task"
23+
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_task_role_arn : null
24+
}

0 commit comments

Comments
 (0)