Skip to content

(context-providers): Support pagination for listresources in CC API #587

Open
@mrlikl

Description

@mrlikl

Describe the bug

When the lookups happen for resources like AWS::EC2::PrefixList, the lack of pagination leads to false errors like RuntimeError: ValidationError: Could not find any managed prefix lists matching {"prefixListName":"xxxxxxxxxxxxx"}

Internal TT - V1780034086, D249642744

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

The List API handles pagination to search through the pages and find the resource, and also make one call for common types.

Current Behavior

If there are 10 prefixlist lookups in the stack, now it's making 10 list calls which are throttled down the line and due to lack of pagination, it fails with validation error.

Reproduction Steps

NA

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.195.0

Framework Version

No response

Node.js Version

OS

macos

Language

TypeScript, Python

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions