Repository navigation
Aurora DSQL: Parse AWS IAM role mappings - #7
Merged
Merged
Conversation
- Parse AWS IAM GRANT and REVOKE in PostgreSQL and generic dialects. - Preserve database role and IAM ARN lists in dedicated AST variants. - Bump sqlparser-dsql to 0.62.10. Fixes awslabs/aurora-dsql-tools#197
amaksimo
marked this pull request as ready for review
October 15, 2026 19:12
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.
Why
Aurora DSQL uses
AWS IAM GRANTandAWS IAM REVOKEto associatePostgreSQL database roles with IAM principals.
dsql-lintneeds structuredparser output for these statements before its compatibility rules can evaluate
them.
What
PostgreSQL and generic dialects, including quoted and comma-separated roles
and ARN literals.
AWSandIAMavailable as unreserved identifiers and expose a dialectopt-in for custom dialects.
sqlparser-dsqlto 0.62.10 for the linter dependency update.Testing
cargo test --all-featurespassed; the independent test audit proved all 13changed tests, and review panel round 3 passed.
git diff --checkpassed.thumbv6m-none-eabino-std check andcargo publish --dry-runpassed.References