4

I am using serverless framework to deploy AWS resources (User Pool, Identity Pool, Dynamo Tables). I know you're not allowed to make changes to a User Pool once it is already created (and similarly Dynamo indexes). I was wondering what the best practice is to update these types of resources without deleting users/data? Thankfully serverless caught the problem upon deploying

Updates are not allowed for property - UserPoolName

But I have heard of people dropping users by accidentally updating User Pools.

Any suggestions?

1
  • Make sure you check the docs to see which attributes you are and are not allowed to change for an existing pool. Commented Jan 4, 2020 at 11:57

1 Answer 1

5

Have a look at this well documented AWS Blog on how to change attributes of Amazon Cognito user pool after creation: https://aws.amazon.com/premiumsupport/knowledge-center/cognito-change-user-pool-attributes/

In Summary: You have to re-create a new user pool with new attributes that you want, and then use a lambda function to migrate users. Sadly, this seems to be the only way.

1
  • 4
    How to handle that kind of replacement with CloudFormation?
    – BartusZak
    Commented Sep 7, 2020 at 11:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.