Skip to content

Commit e9d920b

Browse files
authored
feat: Add the external resource equivalents to the outputs as the fallback value (#131)
1 parent 8746b10 commit e9d920b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/service/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ output "iam_role_name" {
2323

2424
output "iam_role_arn" {
2525
description = "Service IAM role ARN"
26-
value = try(aws_iam_role.service[0].arn, null)
26+
value = try(aws_iam_role.service[0].arn, var.iam_role_arn)
2727
}
2828

2929
output "iam_role_unique_id" {
@@ -46,7 +46,7 @@ output "container_definitions" {
4646

4747
output "task_definition_arn" {
4848
description = "Full ARN of the Task Definition (including both `family` and `revision`)"
49-
value = try(aws_ecs_task_definition.this[0].arn, null)
49+
value = try(aws_ecs_task_definition.this[0].arn, var.task_definition_arn)
5050
}
5151

5252
output "task_definition_revision" {
@@ -71,7 +71,7 @@ output "task_exec_iam_role_name" {
7171

7272
output "task_exec_iam_role_arn" {
7373
description = "Task execution IAM role ARN"
74-
value = try(aws_iam_role.task_exec[0].arn, null)
74+
value = try(aws_iam_role.task_exec[0].arn, var.task_exec_iam_role_arn)
7575
}
7676

7777
output "task_exec_iam_role_unique_id" {
@@ -91,7 +91,7 @@ output "tasks_iam_role_name" {
9191

9292
output "tasks_iam_role_arn" {
9393
description = "Tasks IAM role ARN"
94-
value = try(aws_iam_role.tasks[0].arn, null)
94+
value = try(aws_iam_role.tasks[0].arn, var.tasks_iam_role_arn)
9595
}
9696

9797
output "tasks_iam_role_unique_id" {

0 commit comments

Comments
 (0)