-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-cognito-identitypoolbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p2
Description
Describe the bug
Hello!
When creating an IdentityPool that I only want authenticated users to access I set allowUnauthenticatedIdentities to false. However, this still ends up creating an IAM role for unauthenticated users, eventhough I specified I don't need it and it's not required.
Expected Behavior
When setting allowUnauthenticatedIdentities to false, an IAM role for unauthenticated users should not be synthesized.
Current Behavior
When setting allowUnauthenticatedIdentities to false, an IAM role for unauthenticated users is being synthesized.
Reproduction Steps
const stack = new Stack();
const identityPool = new IdentityPool(stack, 'TestIdentityPool');
Possible Solution
Check if allowUnauthenticatedIdentities is false. If so, do not synthesize the unauthenticated IAM role.
Additional Information/Context
No response
CDK CLI Version
2.78.0
Framework Version
No response
Node.js Version
16.16.0
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cognito-identitypoolbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p2