automan 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +0 -5
- data/automan.gemspec +3 -3
- data/lib/automan.rb +0 -1
- data/lib/automan/base.rb +3 -7
- data/lib/automan/beanstalk/deployer.rb +1 -1
- data/lib/automan/beanstalk/package.rb +1 -1
- data/lib/automan/beanstalk/router.rb +1 -1
- data/lib/automan/cli/snapper.rb +23 -3
- data/lib/automan/cli/stacker.rb +0 -19
- data/lib/automan/cloudformation/launcher.rb +3 -6
- data/lib/automan/cloudformation/replacer.rb +1 -1
- data/lib/automan/cloudformation/terminator.rb +1 -1
- data/lib/automan/ec2/image.rb +3 -3
- data/lib/automan/mixins/aws_caller.rb +7 -21
- data/lib/automan/rds/snapshot.rb +25 -35
- data/lib/automan/s3/downloader.rb +1 -10
- data/lib/automan/version.rb +1 -1
- data/spec/beanstalk/application_spec.rb +17 -17
- data/spec/beanstalk/configuration_spec.rb +24 -24
- data/spec/beanstalk/deployer_spec.rb +65 -65
- data/spec/beanstalk/router_spec.rb +19 -18
- data/spec/beanstalk/terminator_spec.rb +16 -16
- data/spec/beanstalk/uploader_spec.rb +13 -13
- data/spec/beanstalk/version_spec.rb +10 -8
- data/spec/cloudformation/launcher_spec.rb +65 -63
- data/spec/cloudformation/replacer_spec.rb +10 -10
- data/spec/cloudformation/terminator_spec.rb +23 -23
- data/spec/cloudformation/uploader_spec.rb +13 -13
- data/spec/ec2/image_spec.rb +55 -55
- data/spec/ec2/instance_spec.rb +17 -17
- data/spec/mixins/aws_caller_spec.rb +9 -9
- data/spec/mixins/utils_spec.rb +28 -27
- data/spec/rds/snapshot_spec.rb +46 -44
- metadata +9 -22
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -5
- data/lib/automan/elasticache/router.rb +0 -79
- data/spec/elasticache/router_spec.rb +0 -29
- data/templates/stacker/.env.example +0 -14
- data/templates/stacker/.gitignore +0 -2
- data/templates/stacker/.ruby-gemset.tt +0 -1
- data/templates/stacker/.ruby-version +0 -1
- data/templates/stacker/Gemfile +0 -4
- data/templates/stacker/bin/%app_name%.tt +0 -62
- data/templates/stacker/bin/launch_%app_name%.sh.tt +0 -12
@@ -1 +0,0 @@
|
|
1
|
-
<%= @app_name %>
|
@@ -1 +0,0 @@
|
|
1
|
-
2.2.2
|
data/templates/stacker/Gemfile
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'bundler/setup'
|
3
|
-
require 'cloudformation-ruby-dsl/cfntemplate'
|
4
|
-
require 'json'
|
5
|
-
|
6
|
-
t = template do
|
7
|
-
## CloudFormation template stuff goes here
|
8
|
-
## See https://github.com/bazaarvoice/cloudformation-ruby-dsl
|
9
|
-
##
|
10
|
-
## Here's an example.
|
11
|
-
##
|
12
|
-
|
13
|
-
# value AWSTemplateFormatVersion: '2010-09-09'
|
14
|
-
|
15
|
-
# value Description: 'Creates resources for my stack'
|
16
|
-
|
17
|
-
# parameter 'VpcId',
|
18
|
-
# Description: 'The VPC in which to launch',
|
19
|
-
# Type: 'String'
|
20
|
-
|
21
|
-
# parameter 'SubnetId',
|
22
|
-
# Description: 'The Subnet in which to launch the instances',
|
23
|
-
# Type: 'String'
|
24
|
-
|
25
|
-
# parameter 'RemoteAccessSG',
|
26
|
-
# Description: 'The security group allowing remote access',
|
27
|
-
# Type: 'String'
|
28
|
-
|
29
|
-
# parameter 'KeyPairName',
|
30
|
-
# Description: 'Public/private key pairs allow you to securely connect to your instance after it launches',
|
31
|
-
# Type: 'String'
|
32
|
-
|
33
|
-
# parameter 'InstanceType',
|
34
|
-
# Description: 'EC2 instance type for training machines',
|
35
|
-
# Type: 'String',
|
36
|
-
# Default: 't2.small'
|
37
|
-
|
38
|
-
# parameter 'ImageId',
|
39
|
-
# Description: 'Amazon Machine Image Id of pre-baked training machine',
|
40
|
-
# Type: 'String'
|
41
|
-
|
42
|
-
# resource "MyInstance", Type: 'AWS::EC2::Instance',
|
43
|
-
# Properties: {
|
44
|
-
# ImageId: ref('ImageId'),
|
45
|
-
# InstanceType: ref('InstanceType'),
|
46
|
-
# NetworkInterfaces: [{
|
47
|
-
# AssociatePublicIpAddress: 'true',
|
48
|
-
# DeviceIndex: '0',
|
49
|
-
# DeleteOnTermination: 'true',
|
50
|
-
# SubnetId: ref('SubnetId'),
|
51
|
-
# GroupSet: [
|
52
|
-
# ref('RemoteAccessSG')
|
53
|
-
# ]
|
54
|
-
# }],
|
55
|
-
# Tags: [
|
56
|
-
# { Key: 'Name', Value: "MyInstance" }
|
57
|
-
# ],
|
58
|
-
# KeyName: ref('KeyPairName')
|
59
|
-
# }
|
60
|
-
end
|
61
|
-
|
62
|
-
puts JSON.pretty_generate(t)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
# To set template parameters, add the -p options
|
3
|
-
# to the end of the stacker command:
|
4
|
-
#
|
5
|
-
# stacker launch -n <%= @app_name %> -t <%= @app_name %>.json --disable-rollback \
|
6
|
-
# -p VpcId:$VPC_ID \
|
7
|
-
# SubnetId:$SUBNET_ID \
|
8
|
-
# RemoteAccessSG:$REMOTE_ACCESS_SG \
|
9
|
-
# KeyPairName:$KEYPAIR_NAME \
|
10
|
-
# InstanceType:$INSTANCE_TYPE \
|
11
|
-
# ImageId:$IMAGE_ID
|
12
|
-
stacker launch -n <%= @app_name %> -t <%= @app_name %>.json --disable-rollback
|