Skip to content

Instantly share code, notes, and snippets.

View przygode's full-sized avatar

Katherine Przygode przygode

View GitHub Profile
@przygode
przygode / gist:3759633
Created September 21, 2012 03:52
cloud-formation-description
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Stratalux Application Server Stack"
}
@przygode
przygode / gist:3759703
Created September 21, 2012 04:21
auto-scaling-mappings
{
"Mappings": {
"AWSInstanceType2Arch": {
"t1.micro": {
"Arch": "64"
},
"m1.small": {
"Arch": "64"
},
"m1.medium": {
@przygode
przygode / gist:3759720
Created September 21, 2012 04:33
auto-scaling-resource-iam-user
{
"ChefClientUser": {
"Type": "AWS::IAM::User",
"Properties": {
"Path": "/",
"Policies": [
{
"PolicyName": "root",
"PolicyDocument": {
"Statement": [
@przygode
przygode / gist:3759729
Created September 21, 2012 04:37
auto-scaling-resource-hostkeys
{
"HostKeys": {
"Type": "AWS::IAM::AccessKey",
"DependsOn": "ChefClientUser",
"Properties": {
"UserName": {
"Ref": "ChefClientUser"
}
}
}
@przygode
przygode / gist:3759732
Created September 21, 2012 04:38
auto-scaling-resource-bucketpolicy
{
"BucketPolicy": {
"Type": "AWS: : S3: : BucketPolicy",
"DependsOn": "HostKeys",
"Properties": {
"PolicyDocument": {
"Version": "2008-10-17",
"Id": "ReadPolicy",
"Statement": [
{
@przygode
przygode / gist:3759806
Created September 21, 2012 05:01
auto-scaling-resource-snstopic
{
"AppServerSNSTopic": {
"Type": "AWS::SNS::Topic",
"Properties": {
"Subscription": [
{
"Endpoint": {
"Ref": "SNSTopic"
},
"Protocol": "email"
@przygode
przygode / gist:3759817
Created September 21, 2012 05:07
auto-scaling-launchconfiguration
{
"ChefClient": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"DependsOn": "BucketPolicy",
"Metadata": {
"AWS::CloudFormation::Init": {
"config": {
"packages": {
"rubygems": {
"chef": [
@przygode
przygode / gist:3759844
Created September 21, 2012 05:15
auto-scaling-secruitygroup
{
"AppServerAccess": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "AppServerAccess",
"SecurityGroupIngress": [
{
"IpProtocol": "tcp",
"FromPort": "80",
"ToPort": "80",
@przygode
przygode / gist:3759856
Created September 21, 2012 05:21
auto-scaling-scaleupolicy
{
"AppServerScaleUpPolicy": {
"Type": "AWS::AutoScaling::ScalingPolicy",
"Properties": {
"AdjustmentType": "ChangeInCapacity",
"AutoScalingGroupName": {
"Ref": "AppServerGroup"
},
"Cooldown": "60",
"ScalingAdjustment": "1"
@przygode
przygode / gist:3759864
Created September 21, 2012 05:24
auto-scaling-scaledownpolicy
{
"AppServerScaleDownPolicy": {
"Type": "AWS::AutoScaling::ScalingPolicy",
"Properties": {
"AdjustmentType": "ChangeInCapacity",
"AutoScalingGroupName": {
"Ref": "AppServerGroup"
},
"Cooldown": "60",
"ScalingAdjustment": "-1"