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 | 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 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" }