@@ -23,7 +23,7 @@ output "iam_role_name" {
2323
2424output "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
2929output "iam_role_unique_id" {
@@ -46,7 +46,7 @@ output "container_definitions" {
4646
4747output "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
5252output "task_definition_revision" {
@@ -71,7 +71,7 @@ output "task_exec_iam_role_name" {
7171
7272output "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
7777output "task_exec_iam_role_unique_id" {
@@ -91,7 +91,7 @@ output "tasks_iam_role_name" {
9191
9292output "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
9797output "tasks_iam_role_unique_id" {
0 commit comments