From 70f7e440d1bb0b0594cc1e54223cf42b26fad009 Mon Sep 17 00:00:00 2001 From: Rodrigue Koffi Date: Sun, 29 Oct 2023 19:26:53 +0100 Subject: [PATCH] Pre-commit fixes --- modules/ecs-monitoring/README.md | 10 ++++++---- modules/ecs-monitoring/locals.tf | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/ecs-monitoring/README.md b/modules/ecs-monitoring/README.md index 0891d5fb..66b2a1c1 100644 --- a/modules/ecs-monitoring/README.md +++ b/modules/ecs-monitoring/README.md @@ -59,12 +59,12 @@ See examples using this Terraform modules in the **Amazon ECS** section of [this | [ecs\_adot\_cpu](#input\_ecs\_adot\_cpu) | CPU to be allocated for the ADOT ECS TASK | `string` | `"256"` | no | | [ecs\_adot\_mem](#input\_ecs\_adot\_mem) | Memory to be allocated for the ADOT ECS TASK | `string` | `"512"` | no | | [ecs\_metrics\_collection\_interval](#input\_ecs\_metrics\_collection\_interval) | Collection interval for ecs metrics | `string` | `"15s"` | no | -| [executionRoleArn](#input\_executionRoleArn) | ARN of the IAM Execution Role | `string` | n/a | yes | +| [execution\_role\_arn](#input\_execution\_role\_arn) | ARN of the IAM Execution Role | `string` | n/a | yes | | [otel\_image\_ver](#input\_otel\_image\_ver) | Otel Docker Image version | `string` | `"v0.31.0"` | no | -| [otlpGrpcEndpoint](#input\_otlpGrpcEndpoint) | otlpGrpcEndpoint | `string` | `"0.0.0.0:4317"` | no | -| [otlpHttpEndpoint](#input\_otlpHttpEndpoint) | otlpHttpEndpoint | `string` | `"0.0.0.0:4318"` | no | +| [otlp\_grpc\_endpoint](#input\_otlp\_grpc\_endpoint) | otlpGrpcEndpoint | `string` | `"0.0.0.0:4317"` | no | +| [otlp\_http\_endpoint](#input\_otlp\_http\_endpoint) | otlpHttpEndpoint | `string` | `"0.0.0.0:4318"` | no | | [refresh\_interval](#input\_refresh\_interval) | Refresh interval for ecs\_observer | `string` | `"60s"` | no | -| [taskRoleArn](#input\_taskRoleArn) | ARN of the IAM Task Role | `string` | n/a | yes | +| [task\_role\_arn](#input\_task\_role\_arn) | ARN of the IAM Task Role | `string` | n/a | yes | ## Outputs @@ -72,4 +72,6 @@ See examples using this Terraform modules in the **Amazon ECS** section of [this |------|-------------| | [grafana\_workspace\_endpoint](#output\_grafana\_workspace\_endpoint) | The endpoint of the Grafana workspace | | [grafana\_workspace\_id](#output\_grafana\_workspace\_id) | The ID of the Grafana workspace | +| [prometheus\_workspace\_endpoint](#output\_prometheus\_workspace\_endpoint) | Prometheus endpoint available for this workspace | +| [prometheus\_workspace\_id](#output\_prometheus\_workspace\_id) | Identifier of the workspace | diff --git a/modules/ecs-monitoring/locals.tf b/modules/ecs-monitoring/locals.tf index 42fc2a90..a06ad308 100644 --- a/modules/ecs-monitoring/locals.tf +++ b/modules/ecs-monitoring/locals.tf @@ -13,8 +13,8 @@ locals { refresh_interval = var.refresh_interval ecs_metrics_collection_interval = var.ecs_metrics_collection_interval amp_remote_write_ep = "${local.prometheus_ws_endpoint}api/v1/remote_write" - otlp_grpc_endpoint = var.otlp_grpc_endpoint - otlp_http_endpoint = var.otlp_http_endpoint + otlp_grpc_endpoint = var.otlp_grpc_endpoint + otlp_http_endpoint = var.otlp_http_endpoint } ssm_param_value = yamlencode(