Repository navigation
[aws] Fix AWS metrics include_linked_accounts false being dropped (7.1 backport) - #21969
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The changelog still contains a placeholder PR URL that must be replaced before release.
1 open finding
What changed in this PR
Backports the AWS linked-account toggle fix to package 7.1.6 for Kibana 9.4/9.5.
Changes:
- Always renders
include_linked_accountsacross all 24 metrics streams. - Keeps
owning_accountconditional. - Bumps the package and changelog version to 7.1.6.
Contributor tooling: If needed, install integration-skills@elastic-integration-skills.
| File | Description |
|---|---|
packages/aws/manifest.yml |
Bumps version to 7.1.6. |
packages/aws/changelog.yml |
Adds the 7.1.6 bug-fix entry. |
packages/aws/data_stream/apigateway_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/billing/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/cloudwatch_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/dynamodb/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/ebs/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/ec2_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/ecs_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/elb_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/emr_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/firewall_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/kafka_metrics/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/kinesis/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/lambda/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/natgateway/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/rds/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/redshift/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/s3_daily_storage/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/s3_request/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/s3_storage_lens/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/sns/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/sqs/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/transitgateway/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/usage/agent/stream/stream.yml.hbs |
Always renders the option. |
packages/aws/data_stream/vpn/agent/stream/stream.yml.hbs |
Always renders the option. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
|
✅ All changelog entries have the correct PR link. |
|
✅ Package owners are in sync with |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Review summaryIssues found across the latest commits 8da7321 — 1 lowPackage-level:
🤖 AI-Generated Review | Vera Review Bot - v0.4.3 | 📚 Knowledge base: integration-skills
|
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
firewall_logs |
5076.14 | 3174.6 | -1901.54 (-37.46%) | 💔 |
guardduty |
1901.14 | 1303.78 | -597.36 (-31.42%) | 💔 |
inspector |
1680.67 | 1175.09 | -505.58 (-30.08%) | 💔 |
rds |
37037.04 | 22727.27 | -14309.77 (-38.64%) | 💔 |
apigateway_logs |
21276.6 | 14285.71 | -6990.89 (-32.86%) | 💔 |
securityhub_insights |
1270.65 | 848.18 | -422.47 (-33.25%) | 💔 |
cloudfront_logs |
4032.26 | 2083.33 | -1948.93 (-48.33%) | 💔 |
cloudtrail |
2976.19 | 2145.92 | -830.27 (-27.9%) | 💔 |
cloudwatch_logs |
166666.67 | 90909.09 | -75757.58 (-45.45%) | 💔 |
ec2_logs |
40000 | 31250 | -8750 (-21.88%) | 💔 |
emr_logs |
30303.03 | 19230.77 | -11072.26 (-36.54%) | 💔 |
To see the full report comment with /test benchmark fullreport
💚 Build Succeeded
|
|
Changelog sync PR created: #22097 |
|
Package aws - 7.1.6 containing this change is available at https://epr.elastic.co/package/aws/7.1.6/ |

Backport of #21631 to aws 7.1
WHAT: Render
include_linked_accountsunconditionally in all 24 AWS metrics stream templates. Keepowning_accountinside{{#if include_linked_accounts}}.WHY: The key was wrapped in
{{#if include_linked_accounts}}, so switching the toggle off omitted the key instead of writingfalse. The aws metricset in beats treats a missing key astrue, so the toggle could not turn linked-account collection off.The fix already shipped in 6.22.1 (#21639) and 8.7.1 (#21631). 8.x needs Kibana ^9.6.0, and Fleet offers 7.1.x as the latest version on Kibana 9.4/9.5, so users on those versions had no fixed version to upgrade to. This releases it as 7.1.6 (
kibana: ^9.4.0).Checklist
changelog.ymlfile.How to test this PR locally
include_linked_accounts: falsefor that stream.include_linked_accounts: true.Related issues