AWS API Gateway Endpoint Latency and 5XX Spike Sentinel
Audits AWS API Gateway stages to detect 5XX server error surges and p99 integration latency breaches.
Audits AWS CloudWatch log groups to detect indefinite retention policies causing uncontrolled storage cost accumulation.
This workflow uses the official AWS CLI plugin to query AWS CloudWatch Logs across the specified region. It searches for all log groups lacking an explicit retentionInDays setting (which default to Never Expire). It calculates total stored bytes across unmanaged log groups and alerts the FinOps team via Slack when unexpiring log groups exceed the policy threshold.
io.kestra.plugin.aws.cli.AwsCLI with secure credentials injection.aws logs put-retention-policy to remediate automatically.logs:DescribeLogGroups permissions.AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and SLACK_WEBHOOK configured in Kestra.