This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec2-user: $ cd ~/environment/theme-park-backend/1-app-deploy/sam-app | |
Below is the line that is changed. | |
ec2-user:~/environment/theme-park-backend (master) $ git diff | |
diff --git a/1-app-deploy/sam-app/getUploadURL/app.js b/1-app-deploy/sam-app/getUploadURL/app.js | |
index 7a41827..d6f6834 100644 | |
--- a/1-app-deploy/sam-app/getUploadURL/app.js | |
+++ b/1-app-deploy/sam-app/getUploadURL/app.js | |
@@ -15,7 +15,7 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws s3 ls | |
Traceback (most recent call last): | |
File "/usr/local/bin/aws", line 19, in <module> | |
import awscli.clidriver | |
File "/Library/Python/2.7/site-packages/awscli/clidriver.py", line 17, in <module> | |
import botocore.session | |
File "/Library/Python/2.7/site-packages/botocore/session.py", line 26, in <module> | |
import botocore.credentials | |
File "/Library/Python/2.7/site-packages/botocore/credentials.py", line 22, in <module> | |
from dateutil.parser import parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in template: | |
relationship_cache_array_fraction=<%= (2000 / node['neo4j']['server']['jvm']['xmx'].to_i).to_f * 100 %> | |
in role: | |
"neo4j" : { | |
"server" : { | |
"jvm" : { | |
"xms" : "76800", | |
"xmx" : "76800", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Statement": [ | |
{ | |
"Sid": "Stmt1422554467931", | |
"Action": [ | |
"s3:PutObject", | |
"s3:PutObjectAcl" | |
], | |
"Effect": "Allow", | |
"Resource": "arn:aws:s3:::mybucket/somepath/*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ReversePrivateDNSRecord1" : { | |
"Type" : "AWS::Route53::RecordSet", | |
"Properties" : { | |
"HostedZoneId" : "XXXXXXXXXXX", | |
"Comment" : { "Fn::Join" : [ "", ["DNS name for instance in CF stack: ", { "Ref": "AWS::StackName" }]]}, | |
"Name" : { | |
"Fn::Join" : [ "", [ | |
{ "Fn::Select" : [ "3", {"Fn::Split" : [".", { "Fn::GetAtt" : [ "Host1", "PrivateIp" ] } ] }]}, | |
".", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Create a Route53 Fail Whale failover setup from ELB to S3. You need a preexisting ELB, S3 bucket configured as a Website endpoint, and Hosted Zone.", | |
"Parameters" : { | |
"ELBDnsName" : { | |
"Type" : "String", | |
"Description" : "Your ELB's DNS Name" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Apache logs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
client = AWS::SimpleWorkflow.new(:region => "us-west-2") | |
puts "looking for a domain" | |
mydomain = client.domains['ReInvent2014'] | |
if mydomain.exists? | |
if mydomain.workflow_types['EIPMapper','1.0'].exists? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template node[:deploy][:current_path]"/wp-config.php" do | |
How do I fix the above? I want to combine the node attributes with the file at the end. | |
Thanks, | |
-munns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# made by Chris Munns | |
host_info=`ec2-describe-instances | grep $HOSTNAME` | |
host_id=`echo $host_info | awk '{print $2}'` | |
host_zone=`echo $host_info | awk '{print $11}'` | |
SCHEDULER=deadline | |
MDADMCOM=/sbin/mdadm | |
volNum=$1 | |
volSize=$2 |
NewerOlder