Skip to content

Instantly share code, notes, and snippets.

View olivercera's full-sized avatar
🚀
Coding!

Oliver Cera olivercera

🚀
Coding!
View GitHub Profile
import streamlit as st
import boto3
import json
# import random
# import string
region = boto3.Session(profile_name="interbank-poc").region_name
session = boto3.Session(profile_name="interbank-poc", region_name=region)
lambda_client = session.client("lambda")
@olivercera
olivercera / gist:82cf80ece78743aa04d06d58dce4a703
Created December 15, 2020 21:08
S3 Web hosting - Bucket Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket-name/*"
}