This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import boto3 | |
from datetime import date | |
# Email stuff | |
EMAIL_ADDRESS_BODY = os.environ.get('EMAIL_ADDRESS_BODY') | |
SOURCE_ADDRESS = os.environ.get('SOURCE_ADDRESS') | |
CC_EMAIL_ADDRESS = os.environ.get('CC_EMAIL_ADDRESS') | |
ENV = os.environ.get('env') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AWS Cognito MFA | |
# MFA is not configured by default when using the AWS Cognito web UI. | |
# The following script will setup a user account, setup MFA for the user, and return a temporary password. | |
import boto3, json, pyotp | |
import string, random | |
import sys | |
import hmac, hashlib, base64 | |