Skip to content

Instantly share code, notes, and snippets.

View btotharye's full-sized avatar

Brian btotharye

View GitHub Profile
@btotharye
btotharye / app.py
Last active September 6, 2019 21:36
ECS Fargate Setup with Multi Stack
#!/usr/bin/env python3
from aws_cdk import core
from cdk.vpc_stack import VpcStack
from cdk.ecs_stack import EcsStack
app = core.App()
@btotharye
btotharye / app.py
Created September 3, 2019 10:52
Atlas Mongo VPC Peering with AWS
import os
import requests
from requests.auth import HTTPDigestAuth
import pprint
import json
import boto3
import time
def mongo_peer_setup(
@btotharye
btotharye / app.py
Last active October 3, 2023 10:37
AWS CDK ECS Fargate with ALB and VPC Flow Logs Including Cloudwatch logs for ECS - Locked down to custom peer IP
from aws_cdk import (
aws_ec2 as ec2,
aws_ecs as ecs,
aws_iam as iam,
aws_logs as logs,
aws_elasticloadbalancingv2 as elbv2,
core,
)
@btotharye
btotharye / app.py
Last active May 9, 2021 17:09
CDK Python VPC with Flow Logs
#!/usr/bin/env python3
from aws_cdk import core
from cdk.cdk_stack import CdkStack
app = core.App()
# Params and stage info

Keybase proof

I hereby claim:

  • I am btotharye on github.
  • I am btotharye (https://keybase.io/btotharye) on keybase.
  • I have a public key ASAT-3qjxnNnjtXqf_nWr4FtBzPfa5_rWfJBn8rS1RYu_Ao

To claim this, I am signing this object:

@btotharye
btotharye / SAP_CLA
Created August 28, 2017 12:48 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
###SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwid