aws-cognito: Custom attributes cannot have the same name as standard attributes #31593
Open
1 task done
Labels
@aws-cdk/aws-cognito
Related to Amazon Cognito
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
It is currently not possible to correctly create a Cognito user pool with custom attributes that share the same name as one of the standard attributes. It does not result in an error from CloudFormation. However, the resulting user pool is missing the custom attributes when they already exist as standard attributes which leads to errors when trying to create an app client and giving it permissions to alter those missing custom attributes.
We already have an existing user pool where we were able to add custom attributes with the same name. However when trying to create a completely new user pool with our configuration this now fails.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The custom attribute despite having same name as the equivalent standard attribute is created.
Current Behavior
The custom attribute with the same name is silently dropped.
Reproduction Steps
And the resulting attributes are:
note the missing
custom:address
attribute.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.158.0 (build 4b8714d)
Framework Version
No response
Node.js Version
v20.14.0
OS
macOS 14.7 (23H124)
Language
TypeScript
Language Version
TypeScript (5.6.2)
Other information
No response
The text was updated successfully, but these errors were encountered: