If you deploy a UserPool via CloudFormation, e.g:
Resources:
UserPool:
Type: 'AWS::Cognito::UserPool'
Properties:
...
Schema:
- Name: email
AttributeDataType: String
Mutable: true
Required: true
and then update the attributes to make name
required:
Schema:
- Name: email
AttributeDataType: String
Mutable: true
Required: true
- Name: name
AttributeDataType: String
Mutable: true
Required: true
AWS thinks that name
is a custom attribute and fails with:
Required custom attributes are not supported currently. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: ...)
It's only an update that fails, deploying a clean stack correctly sets both the email
and name
standard attributes to required.
Is there any way for the update to succeed?