Skip to content

Instantly share code, notes, and snippets.

# This is a workflow created to run based on a commit made by AWS Proton
# It only works if there is only one resource modified as part of the commit.
name: 'proton-run'
on:
pull_request:
types:
- opened
- reopened
@adamjkeller
adamjkeller / lambdaDockerImageDemo.md
Last active October 29, 2022 04:34
Lambda Docker Image Support CDK Sample

Lambda container image support

Docs

https://docs.aws.amazon.com/lambda/latest/dg/images-create.html

Dockerfile

FROM public.ecr.aws/lambda/python:3.8
import jenkins.model.*
import hudson.security.*
import hudson.scm.*
import com.cloudbees.plugins.credentials.*
import hudson.plugins.active_directory.*
class JenkinsAuth {
def instance = Jenkins.getInstance()
def sec_realm, auth, ad_realm
def user, email, password, domain, site, bind_name, bind_password, ad_server
#!/usr/bin/env bash
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/services_eni_route53.sh
getjson && getiplist && formatiplist && route53set
#!/usr/bin/env bash
set -eux
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
zone=${1}
stack_name=${2}
securitygroup=${3:-null}
service_name=${4}
iplist=()
#!/usr/bin/env python
'''
This is a high level basic example of roles
'''
from fabric.api import *
@task
def load_hosts(region='region'):
@adamjkeller
adamjkeller / gist:df32e53e1458db02a606
Last active February 13, 2016 00:36
AWS IAM - Find users and determine last time key(s) were used (if ever)
#!/usr/bin/env python
import boto.iam as a
import boto3
class UserInfo(object):
def __init__(self, region = 'us-east-1'):
self.region = region
self.user_map = {}