Skip to content

Instantly share code, notes, and snippets.

View davidfrey's full-sized avatar

David Frey davidfrey

View GitHub Profile
@davidfrey
davidfrey / cfn-s3-queue-notification.yml
Created February 21, 2017 15:25
Cloud Formation: S3 Queue Notification
AWSTemplateFormatVersion: "2010-09-09"
Description: S3 Queue Notifications Test
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: Stack Variables
Parameters:
- Environment
- Label:
@davidfrey
davidfrey / cfn-keen.yml
Created February 21, 2017 15:27
Cloud Formation: Keen Stream to S3
AWSTemplateFormatVersion: "2010-09-09"
Description: Keen Policy Test
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: Stack Variables
Parameters:
- Environment
- Label:
@davidfrey
davidfrey / beanstalk_ssh.sh
Created August 4, 2017 18:10
AWS Beanstalk SSH Workaround
#!/bin/bash
PROFILE=aws-profile
environment=$1
if [ $# -ne 1 ]; then
echo script needs environment as first arg
echo usage: $0 environment
exit 1
fi
echo using environment $environment
first_instance=$(eb list -v | grep Environments: -A 100|grep -v Environments:|grep $environment|cut -d\' -f2)