Git Product home page Git Product logo

cognito-csv-exporter's Introduction

Export Amazon Cognito User Pool records into CSV

This project allows to export user records to CSV file from Amazon Cognito User Pool

Installation

In order to use this script you should have Python 2 or Python 3 installed on your platform

  • run pip install -r requirements.txt (Python 2) or pip3 install -r requirements.txt (Python 3)

Run export

To start export proccess you shout run next command (Note: use python3 if you have Python 3 instaled)

  • $ python CognitoUserToCSV.py --user-pool-id 'us-east-1_XXXXXXXXX' -attr Username email_verified given_name family_name UserCreateDate
  • Wait until you see output INFO: End of Cognito User Pool reached
  • Find file CognitoUsers.csv that contains all exported users. Example

Script Arguments

  • --user-pool-id [Required] - The user pool ID for the user pool on which the export should be performed
  • -attr or --export-attributes [Required] - List of Attributes that will be saved in CSV file
  • --region [Optional] - The user pool region the user pool on which the export should be performed Default: us-east-1
  • -f or --file-name [Optional] - CSV File name or path. Default: CognitoUsers.csv
  • --num-records [Optional] - Max Number of Cognito Records tha will be exported. Default: 0 - All
Note:

If you need to Back up your intire cognito instance pool, take a look for this tool: https://www.npmjs.com/package/cognito-backup-restore

cognito-csv-exporter's People

Contributors

hawkerfun avatar uttufy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.