Skip to content

Commit 50b9d5d

Browse files
authored
Updating ECS service output values
Updating ECS service output values
1 parent 0d6c2a2 commit 50b9d5d

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ repos:
3131
args:
3232
- --args=--exclude-downloaded-modules
3333
- id: terraform_checkov
34+
args:
35+
- --args=--skip-check CKV_TF_1
3436

3537
- repo: https://github.com/pre-commit/pre-commit-hooks
3638
rev: v4.2.0

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugin "aws" {
22
enabled = true
3-
version = "0.17.0"
3+
version = "0.23.1"
44
source = "github.com/terraform-linters/tflint-ruleset-aws"
55
}
66

outputs.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,23 @@ output "ecs_cluster_name" {
2020

2121
output "ecs_service_arn" {
2222
description = "ARN of the ECS service"
23-
value = try(module.cluster.ecs_service_arn, "")
23+
value = try(tomap({
24+
for k, f in module.service : k => f.ecs_service_arn
25+
}), "")
2426
}
2527

2628
output "ecs_service_name" {
2729
description = "The name of the ECS service"
28-
value = try(module.cluster.ecs_service_name, "")
30+
value = try(tomap({
31+
for k, f in module.service : k => f.ecs_service_name
32+
}), "")
2933
}
3034

3135
output "aws_ecs_task_definition" {
3236
description = "ARN of the ECS service"
33-
value = try(module.cluster.aws_ecs_task_definition, "")
37+
value = try(tomap({
38+
for k, f in module.service : k => f.aws_ecs_task_definition
39+
}), "")
3440
}
3541

3642
output "ecs_cloudwatch_log_group_name" {

0 commit comments

Comments
 (0)