Skip to content

Instantly share code, notes, and snippets.

@pritul95
pritul95 / .serverless-wsgi
Created December 26, 2020 05:49
Containerize Flask app w/ AWS Lambda
{
"app": "wsgi.app"
}
@pritul95
pritul95 / boto_session.py
Last active December 17, 2024 12:33
Refreshable Boto3 Session to create auto refreshable client or resource
from uuid import uuid4
from datetime import datetime
from time import time
import boto3
from boto3 import Session
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session