API Gateway methods metrics are not enabled Affecting API Gateway (REST APIs) service in AWS
Severity Framework
Snyk CCSS
Rule category
Monitoring / APIs
Is your enviroment affected by this misconfiguration?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsFrameworks
- Snyk ID SNYK-CC-00734
- credit Snyk Research Team
Description
Missing metrics for API Gateway methods can hinder monitoring and analysis of API performance and usage.
How to fix?
Set the metrics_enabled
attribute under settings
to true
in the aws_api_gateway_method_settings
resource.
Example Configuration
resource "aws_api_gateway_method_settings" "allow" {
rest_api_id = "vkc39lvmmb"
stage_name = "dev"
method_path = "*/*"
settings {
metrics_enabled = true
}
}