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.
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
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: |
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' | |
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' |
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
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: | |