From 0870cc4b8ca7eac922071194106e19c538825fae Mon Sep 17 00:00:00 2001 From: Lucas de Macedo <122332519+lucasmacedot@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:28:31 -0400 Subject: [PATCH 1/3] Add autoscaling values to output --- _outputs.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_outputs.tf b/_outputs.tf index cdb527b..c45644a 100644 --- a/_outputs.tf +++ b/_outputs.tf @@ -5,3 +5,11 @@ output "aws_cloudwatch_log_group_arn" { output "aws_cloudwatch_log_group_name" { value = aws_cloudwatch_log_group.default.name } + +output "autoscaling" { + value = { + resource_id = aws_appautoscaling_target.ecs[0].resource_id + scalable_dimension = aws_appautoscaling_target.ecs[0].scalable_dimension + service_namespace = aws_appautoscaling_target.ecs[0].service_namespace + } +} \ No newline at end of file From f8af39e103d2459c7a4319d2c447520619ecb9ec Mon Sep 17 00:00:00 2001 From: lucasmacedot Date: Wed, 1 May 2024 00:31:00 +0000 Subject: [PATCH 2/3] terraform-docs: automated update action --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3ab85c1..e7b24b9 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ In addition you have the option to create or not : | Name | Description | |------|-------------| +| autoscaling | n/a | | aws\_cloudwatch\_log\_group\_arn | n/a | | aws\_cloudwatch\_log\_group\_name | n/a | From 199340a28e17258d648dea3551c67a785d8f70a8 Mon Sep 17 00:00:00 2001 From: lucasmacedot Date: Tue, 30 Apr 2024 20:31:52 -0400 Subject: [PATCH 3/3] Lint variables file --- _variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_variables.tf b/_variables.tf index 1ad3267..b09df8a 100644 --- a/_variables.tf +++ b/_variables.tf @@ -131,7 +131,7 @@ variable "security_groups" { } variable "without_capacity_provider" { - default = false + default = false description = "Launch service without capacity provider" }