aws-cdk/aws-cognito-identitypool-alpha: Rule based role mapping Circular Dependency #33725
Labels
@aws-cdk/aws-cognito-identitypool
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
Describe the bug
We are encountering a circular dependency when configuring rule-based role mapping for an Amazon Cognito Identity Pool using AWS CDK.
The problem arises because:
This creates a dependency loop where:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
CDK should allow defining role mappings without causing a circular dependency when the IAM role trust policy depends on the Identity Pool ID.
Current Behavior
There is no way to reference the identity pool ID in the IAM role before its creation
Reproduction Steps
Possible Solution
CDK could support lazy evaluation for IAM roles in role mappings, allowing:
Additional Information/Context
No response
CDK CLI Version
2.1001.0 (build 130445d)
Framework Version
No response
Node.js Version
v20.18.0
OS
Ubuntu 22.04.5 LTS
Language
Python
Language Version
Python 3.12.7
Other information
No response
The text was updated successfully, but these errors were encountered: