Skip to content

Instantly share code, notes, and snippets.

@haskins-io
haskins-io / crash.log
Created March 5, 2017 17:35
terraform crash information
2017/03/05 17:30:13 [INFO] Terraform version: 0.8.8 403a86dc557fae52f8e39676b11e1e4356b7d1a2
2017/03/05 17:30:13 [INFO] CLI args: []string{"/Users/markhaskins/Projects/terraform-test/dev/test/terraform", "plan"}
2017/03/05 17:30:13 [DEBUG] Detected home directory from env var: /Users/markhaskins
2017/03/05 17:30:13 [DEBUG] Detected home directory from env var: /Users/markhaskins
2017/03/05 17:30:13 [DEBUG] Attempting to open CLI config file: /Users/markhaskins/.terraformrc
2017/03/05 17:30:13 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/05 17:30:13 [DEBUG] Detected home directory from env var: /Users/markhaskins
2017/03/05 17:30:13 [DEBUG] New state was assigned lineage "bf3167d2-969d-48d0-87c9-a9f1f80265a6"
2017/03/05 17:30:13 [TRACE] Graph after step *terraform.ConfigTransformerOld:
@haskins-io
haskins-io / README.md
Last active March 3, 2017 20:31
a method of deployment a .war to an EC2 using AWS CodeDepoy <- I'm working on this it may not work

The idea at the moment is that the scripts and yaml file are reusable. A deployment would consist of adding a new .war file into the artifcat folder. All the files would then be zipped up and uploaded to S3. A deployment would then be triggered.

@haskins-io
haskins-io / SamTemplate.yaml
Last active March 3, 2017 19:55
SAM template for deploying Lambda function
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: A hello world application.
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
CodeUri: 's3://bucketname/Archive.zip'
@haskins-io
haskins-io / 01-ebs.config
Last active March 3, 2017 20:33
Attach EBS Volume to Beanstalk Docker
commands:
01clear-if-unmounted:
command: if ! mount | grep /media/nexus-data-ebs > /dev/nul; then rm -rf /media/nexus-data-ebs; fi
02attach-volume:
command: aws ec2 attach-volume --region eu-west-1 --volume-id vol-xxxxxxxx --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --device /dev/sdh
ignoreErrors: true
03wait:
command: sleep 10
04trymount:
command: |