Skip to content

Instantly share code, notes, and snippets.

View mnanchev's full-sized avatar

Martin Nanchev mnanchev

View GitHub Profile
name given_name family_name middle_name nickname preferred_username profile picture website email email_verified gender birthdate zoneinfo locale phone_number phone_number_verified address updated_at custom:joinedOn cognito:mfa_enabled cognito:username
probko [email protected] TRUE FALSE FALSE probko.testov
cloudshell-user@ip-10-0-93-38 ~]$ aws cognito-idp get-csv-header --user-pool-id "eu-west-1_XXXXXXX"
{
"UserPoolId": "eu-west-1_XXXXXXX",
"CSVHeader": [
"name",
"given_name",
"family_name",
"middle_name",
"nickname",
"preferred_username",
@mnanchev
mnanchev / cognitoUserMigration.py
Last active October 22, 2021 15:08
Cognito userpool export
import os
import time
import sys
import boto3
REGION = "eu-central-1"
S3_CLIENT = boto3.client("s3", REGION)
COGNITO_CLIENT = boto3.client("cognito-idp", REGION)
USER_POOL_ID = os.environ['USER_POOL_ID']
EXPORTED_RECORDS_COUNT = 0
import boto3
import os
import datetime
"""
This portion will obtain the Environment variables from AWS Lambda.
"""
GROUP_NAME = os.environ['GROUP_NAME']