convection 0.3.0 → 0.3.1
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/README.md +5 -1
- data/docs/index.md +5 -1
- data/docs/stackgroups.md +12 -0
- data/docs/template.html +2 -1
- data/lib/convection/model/template/resource/aws_lambda_alias.rb +20 -0
- data/lib/convection/model/template/resource/aws_lambda_function.rb +1 -0
- data/lib/convection/model/template/resource/aws_lambda_version.rb +19 -0
- data/lib/convection/model/template/resource_property/aws_lambda_function_code.rb +2 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1c6853a4239bdd6a80df2c8b34211d5051f1471
|
4
|
+
data.tar.gz: 4ef5f4822803bba1161bb31e6613be475f78cc32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2ad154fc56465c6440dc174f803a48bd5fa715c4ad23db83182d8ef24dad770f96e2f998c56779c60198a49a4db2d839780abbd4c128ba5c568a2de4b49ad73
|
7
|
+
data.tar.gz: 3136920fadb9fabccdbf5953efca1feed7a6804ebf186b4819904f6e138828e0de8f8b6ec2b2fc72973b538df4a657d88cfbed16b7bf82e4a71bc65bd7139deb
|
data/README.md
CHANGED
@@ -24,9 +24,13 @@ Or install it yourself as:
|
|
24
24
|
##CLI Commands
|
25
25
|
###### Converging
|
26
26
|
- To converge all stacks in your cloudfile run `convection converge`. If you provide the name of your stack as a additional argument such as `convection converge my-stack-name` then all stacks above and including the stack you specified will be converged.
|
27
|
+
- To converge a stack group run `convection converge --stack_group YOUR_STACK_GROUP_NAME`
|
28
|
+
- To converge a specific stack or a list of stacks run `convection converge --stacks stackA stackB ...`
|
27
29
|
|
28
30
|
###### Diff
|
29
|
-
- To display diff between your local changes and the version of your stack in cloud formation of your changes run `convection diff`.
|
31
|
+
- To display a diff between your local changes and the version of your stack in cloud formation of your changes run `convection diff`.
|
32
|
+
- To diff the changes in a stack group run `convection diff --stack_group YOUR_STACK_GROUP_NAME`
|
33
|
+
- To diff the changes for a specific stack or a list of stacks run `convection diff --stacks stackA stackB ...`
|
30
34
|
|
31
35
|
###### Help
|
32
36
|
- To print out a list of available cli options with their descriptions run `convection help`.
|
data/docs/index.md
CHANGED
@@ -24,9 +24,13 @@ Or install it yourself as:
|
|
24
24
|
##CLI Commands
|
25
25
|
###### Converging
|
26
26
|
- To converge all stacks in your cloudfile run `convection converge`. If you provide the name of your stack as a additional argument such as `convection converge my-stack-name` then all stacks above and including the stack you specified will be converged.
|
27
|
+
- To converge a stack group run `convection converge --stack_group YOUR_STACK_GROUP_NAME`
|
28
|
+
- To converge a specific stack or a list of stacks run `convection converge --stacks stackA stackB ...`
|
27
29
|
|
28
30
|
###### Diff
|
29
|
-
- To display diff between your local changes and the version of your stack in cloud formation of your changes run `convection diff`.
|
31
|
+
- To display a diff between your local changes and the version of your stack in cloud formation of your changes run `convection diff`.
|
32
|
+
- To diff the changes in a stack group run `convection diff --stack_group YOUR_STACK_GROUP_NAME`
|
33
|
+
- To diff the changes for a specific stack or a list of stacks run `convection diff --stacks stackA stackB ...`
|
30
34
|
|
31
35
|
###### Help
|
32
36
|
- To print out a list of available cli options with their descriptions run `convection help`.
|
data/docs/stackgroups.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Stackgroups
|
2
|
+
A stack_group is a collection of stacks defined as a string array in your cloudfile. A stack can be defined like the below example in your cloudfile.
|
3
|
+
```ruby
|
4
|
+
stack_group 'test', ['vpc','vpc2']
|
5
|
+
stack 'vpc', Templates::VPC
|
6
|
+
stack 'vpc2', Templates::VPC2
|
7
|
+
```
|
8
|
+
Once defined users can run converge or diff on a specific stack_group instead of the entirety of their cloud file. See below for examples
|
9
|
+
```text
|
10
|
+
convection diff --stack_group test
|
11
|
+
convection converge --stack_group test
|
12
|
+
```
|
data/docs/template.html
CHANGED
@@ -75,7 +75,7 @@
|
|
75
75
|
<a href="https://github.com/{{USER}}/{{NAME}}">View on GitHub</a>
|
76
76
|
</li>
|
77
77
|
<li>
|
78
|
-
<a href="http://
|
78
|
+
<a href="http://{{USER}}.github.io/{{NAME}}/api-docs">View Ruby API documentation</a>
|
79
79
|
</li>
|
80
80
|
<li>
|
81
81
|
<a href="https://rubygems.org/gems/{{NAME}}">View on RubyGems</a>
|
@@ -102,6 +102,7 @@
|
|
102
102
|
<li class="list-group-item"><a href="/{{NAME}}/deleting-stacks">Deleting Stacks</a></li>
|
103
103
|
<li class="list-group-item"><a href="/{{NAME}}/canceling-stack-updates">Canceling Stack Updates</a></li>
|
104
104
|
<li class="list-group-item"><a href="/{{NAME}}/adding-new-resource-coverage">Adding New Resource Coverage</a></li>
|
105
|
+
<li class="list-group-item"><a href="/{{NAME}}/stackgroups">Stackgroups</a></li>
|
105
106
|
|
106
107
|
</ul>
|
107
108
|
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class Resource
|
7
|
+
##
|
8
|
+
# AWS::Lambda::Alias
|
9
|
+
##
|
10
|
+
class LambdaAlias < Resource
|
11
|
+
type 'AWS::Lambda::Alias'
|
12
|
+
property :description, 'Description'
|
13
|
+
property :function_name, 'FunctionName'
|
14
|
+
property :function_version, 'FunctionVersion'
|
15
|
+
property :alias_name, 'Name'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -10,6 +10,7 @@ module Convection
|
|
10
10
|
class Lambda < Resource
|
11
11
|
type 'AWS::Lambda::Function'
|
12
12
|
property :function_code, 'Code'
|
13
|
+
property :function_name, 'FunctionName'
|
13
14
|
property :description, 'Description'
|
14
15
|
property :handler, 'Handler'
|
15
16
|
property :memory_size, 'MemorySize'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class Resource
|
7
|
+
##
|
8
|
+
# AWS::Lambda::Version
|
9
|
+
##
|
10
|
+
class LambdaVersion < Resource
|
11
|
+
type 'AWS::Lambda::Version'
|
12
|
+
property :code_sha256, 'CodeSha256'
|
13
|
+
property :description, 'Description'
|
14
|
+
property :function_name, 'FunctionName'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- docs/index.md
|
98
98
|
- docs/pygment.css
|
99
99
|
- docs/relationship-to-cloudformation.md
|
100
|
+
- docs/stackgroups.md
|
100
101
|
- docs/stacks.md
|
101
102
|
- docs/template.html
|
102
103
|
- example/.ruby-version
|
@@ -181,8 +182,10 @@ files:
|
|
181
182
|
- lib/convection/model/template/resource/aws_iam_role.rb
|
182
183
|
- lib/convection/model/template/resource/aws_iam_user.rb
|
183
184
|
- lib/convection/model/template/resource/aws_kms_key.rb
|
185
|
+
- lib/convection/model/template/resource/aws_lambda_alias.rb
|
184
186
|
- lib/convection/model/template/resource/aws_lambda_function.rb
|
185
187
|
- lib/convection/model/template/resource/aws_lambda_permission.rb
|
188
|
+
- lib/convection/model/template/resource/aws_lambda_version.rb
|
186
189
|
- lib/convection/model/template/resource/aws_logs_loggroup.rb
|
187
190
|
- lib/convection/model/template/resource/aws_rds_db_instance.rb
|
188
191
|
- lib/convection/model/template/resource/aws_rds_db_parameter_group.rb
|
@@ -280,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
283
|
version: '0'
|
281
284
|
requirements: []
|
282
285
|
rubyforge_project:
|
283
|
-
rubygems_version: 2.4.
|
286
|
+
rubygems_version: 2.4.5
|
284
287
|
signing_key:
|
285
288
|
specification_version: 4
|
286
289
|
summary: A fully generic, modular DSL for AWS CloudFormation
|