Skip to content

Updated workspaces_scan function to handle large WorkSpaces environment… - #405

Open
chodono-aws wants to merge 1 commit into
aws-solutions-library-samples:mainfrom
chodono-aws:main
Open

Updated workspaces_scan function to handle large WorkSpaces environment…#405
chodono-aws wants to merge 1 commit into
aws-solutions-library-samples:mainfrom
chodono-aws:main

Conversation

@chodono-aws

Copy link
Copy Markdown
Contributor

…s better

Issue #, if available:

Description of changes:
Modifications to workspace_scan function to handle large workspaces environments.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@chodono-aws
chodono-aws requested a review from iakov-gan October 28, 2025 14:30
workspaces_data = []
for page in client.get_paginator('describe_workspaces').paginate():
workspaces_data.extend(page.get('Workspaces', []))
time.sleep(0.2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refactor this to have exception handling and backoff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants