- Created cognito users without enriching a custom attribute?
- Created cognito users only to later realize you needed a new custom attribute?
- Decided to just add a new custom attribute for your cognito users?
If the answer to any of these questions is yes, then this package is for you!
aws-cognito-set-default-user-attributes is a collection of code which will allow you to easily set attribute values for custom attributes in AWS Cognito.
- Clone this repo
- Set the following variables as needed:
- aws_access_key_id
- aws_secret_access_key
- user_pool_id
- user_list_limit (This is where you define how many user records will be pulled from cognito at a time.)
- Add your attributes in the attrs dictionary
- Run app.py
Upon completion, app.py will return a summary of the updates it made and let you know if there were any errors.
Enjoy!