Skip to content

Instantly share code, notes, and snippets.

View cloudchopshop's full-sized avatar

cloudchopshop

View GitHub Profile
@cloudchopshop
cloudchopshop / s3_ELB_to_Sentinel.py
Created September 29, 2020 15:57
Export ELB logs stored in s3 to Azure Sentinel / log analytics workspace using lambda new s3 file trigger
from io import StringIO, BytesIO
import boto3
import gzip
import re, sys, io, os
import json
import datetime
import hashlib
import hmac
import base64
import urllib3
@cloudchopshop
cloudchopshop / elb_webhosting.json
Last active May 19, 2020 21:23
Cloud Formation Template - ELB Web Hosting Instances
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description" : "This template provisions a new VPC, with public and private subnets, loadbalanced EC2 instances hosting Apache",
"Mappings" : {
"RegionMap" : {
"us-east-2" : {"HVM64" : "ami-0d542ef84ec55d71c"},
"us-west-2" : {"HVM64" : "ami-01460aa81365561fe"}