Hi, I’m using SST v1.0 and I’m trying to set some ...
# help
e
Hi, I’m using SST v1.0 and I’m trying to set some userPool attributes like that:
Copy code
this.auth = new Auth(this, 'Auth', {
  login: ['email', 'username'],
  cdk: {
    userPool: {
      standardAttributes: {
        fullname: { required: true, mutable: false },
      },
    },
  },
});
The problem is that when I redeploy the changes I receive the following error:
Invalid AttributeDataType input, consider using the provided AttributeDataType enum. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException;)
f
e
I’m doing exactly the same thing… 😔
Do you see something wrong?
f
Ah my bad, ur code looks similar. I have a call now.. but lemme take a look in 30min
e
Probably I figured out the problem… the AWS error message isn’t clear at all but the problem should be that we can’t change standard user pool attributes after the user pool is created.
f
Glad u figured it out!
SST should catch this and print out a friendlier error message.