[custom-resources] getResponseField does not function properly when iterating over lists #9568
Labels
@aws-cdk/custom-resources
Related to AWS CDK Custom Resources
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
When using the getResponseField method in a custom resource, it does not properly iterate over lists.
Reproduction Steps
lambdaSg
with settingallowAllOutbound: false
)What did you expect to happen?
When I execute the above CDK and check the outbound rules for the security group in the console, I see 2 rules: one for the 0th item (
PrefixLists.0.PrefixListId
), and one for the 1st item (PrefixLists.1.PrefixListId
).What actually happened?
When I execute the above CDK and check the outbound rules for the security group in the console, I see only 1 rule for the 0th item (
PrefixLists.0.PrefixListId
).Environment
Other
If I replace
prefixListCall.getResponseField(...)
with hardcoded strings, everything works as expected.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: