Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating ECS Service output values #20

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ repos:
args:
- --args=--exclude-downloaded-modules
- id: terraform_checkov
args:
- --args=--skip-check CKV_TF_1

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
Expand Down
2 changes: 1 addition & 1 deletion .tflint.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugin "aws" {
enabled = true
version = "0.17.0"
version = "0.23.1"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}

Expand Down
12 changes: 9 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@ output "ecs_cluster_name" {

output "ecs_service_arn" {
description = "ARN of the ECS service"
value = try(module.cluster.ecs_service_arn, "")
value = try(tomap({
for k, f in module.service : k => f.ecs_service_arn
}), "")
}

output "ecs_service_name" {
description = "The name of the ECS service"
value = try(module.cluster.ecs_service_name, "")
value = try(tomap({
for k, f in module.service : k => f.ecs_service_name
}), "")
}

output "aws_ecs_task_definition" {
description = "ARN of the ECS service"
value = try(module.cluster.aws_ecs_task_definition, "")
value = try(tomap({
for k, f in module.service : k => f.aws_ecs_task_definition
}), "")
}

output "ecs_cloudwatch_log_group_name" {
Expand Down
Loading