Skip to content

Instantly share code, notes, and snippets.

View ParthTrambadiya's full-sized avatar

Parth Trambadiya ParthTrambadiya

View GitHub Profile
{
"WEBSITE_BUCKET_NAME": "",
"FORWARD_EMAIL": "",
"ACM_CERT_ARN": "",
"HOSTED_ZONE_ID": ""
}
import urllib3
import json
import logging
http = urllib3.PoolManager()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def lambda_handler(event, context):
import logging
import base64
import boto3
import os
logger = logging.getLogger()
logger.setLevel(logging.INFO)
s3_client = boto3.client('s3')
@ParthTrambadiya
ParthTrambadiya / custom_email_verification.py
Created August 28, 2021 04:23
Cognito Authentication System with Federated Identity in Serverless Framework(IaC)
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
email_subject = 'Confirm your email'
email_message = """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
@ParthTrambadiya
ParthTrambadiya / config.stage.json
Last active August 26, 2021 09:22
Cognito Authentication System with Federated Identity in Serverless Framework(IaC)
{
"COGNITO_DOMAIN": "",
"CALLBACK_URL": "",
"LOGOUT_URL": "",
"SSM_GOOGLE_CLIENT_ID_PATH": "",
"SSM_GOOGLE_CLIENT_SECRET_PATH": ""
}