aws.cloudtrail: Fix lambda events parsing of vpcConfig.securityGroupIds and vpcConfig.subnetIds fields#16991
Merged
kcreddy merged 2 commits intoelastic:mainfrom Jan 19, 2026
Merged
Conversation
… and `vpcConfig.subnetIds` fields.
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
vpcConfig.securityGroupIds and vpcConfig.subnetIds fieldsvpcConfig.securityGroupIds and vpcConfig.subnetIds fields
🚀 Benchmarks reportTo see the full report comment with |
💚 Build Succeeded
cc @kcreddy |
chemamartinez
approved these changes
Jan 19, 2026
|
Package aws - 5.6.1 containing this change is available at https://epr.elastic.co/package/aws/5.6.1/ |
5 tasks
jakubgalecki0
pushed a commit
to jakubgalecki0/integrations
that referenced
this pull request
Feb 19, 2026
…Ids` and `vpcConfig.subnetIds` fields (elastic#16991) Fields "vpcConfig.securityGroupIds" and "vpcConfig.subnetIds" are arrays as confirmed from docs here[1] and here[2]. This PR fixes their parsing into "related.entity" by using "addValues" function instead of "addFields" function. "addValues" is used to copy a list of values whereas "addFields" is for a scalar value. This prevents the error - "Processor 'script' with tag 'script_append_related_entity' failed with message 'cannot implicitly cast def [java.util.ArrayList] to java.lang.String'" [1]: https://docs.aws.amazon.com/lambda/latest/api/API_CreateFunction.html [2]: https://docs.aws.amazon.com/lambda/latest/api/API_UpdateFunctionCode.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
changelog.ymlfile.How to test this PR locally
vpcConfig.securityGroupIdsandvpcConfig.subnetIdsas array of strings.Before: Fails with error -
[0] unexpected pipeline error: Processor 'script' with tag 'script_append_related_entity' failed with message 'cannot implicitly cast def [java.util.ArrayList] to java.lang.String'After: (Succeeds)