Skip to content

fix: lakeformation related integ tests in mlops#5820

Open
lucasjia-aws wants to merge 1 commit intoaws:masterfrom
lucasjia-aws:archive/lakeformation-changes
Open

fix: lakeformation related integ tests in mlops#5820
lucasjia-aws wants to merge 1 commit intoaws:masterfrom
lucasjia-aws:archive/lakeformation-changes

Conversation

@lucasjia-aws
Copy link
Copy Markdown
Collaborator

Issue

Every RegisterResource call with UseServiceLinkedRole=True appends an S3 ARN to the AWSServiceRoleForLakeFormationDataAccess inline policy. That policy has a size ceiling; once reached, new registrations fail with InvalidInputException: Unable to register the following path.

Fix

Added a helper counts existing test-lf-fg-* registrations and, if the total exceeds max_resources, deregisters the oldest num_to_delete entries.

X-AI-Prompt: archive uncommitted lakeformation test changes
X-AI-Tool: kiro-cli
@BassemHalim
Copy link
Copy Markdown
Contributor

The tests are failing because of the test runner's permissions I manually updated the role's permissions and I'm currently updating the package that generates that role

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.

3 participants