aws-sdk-utils 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cfn_chain_converge +33 -0
  3. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e679a501a6654c4f353f078ef43033c96fc7afd
4
- data.tar.gz: 3224491c3f30c8ebc8be866c24b7f9757edb1772
3
+ metadata.gz: 960bfbe2c87ac374bebce36ef2b8a04e0196529e
4
+ data.tar.gz: 6b558f612339ea2e6b7361925174862a4cfdfab5
5
5
  SHA512:
6
- metadata.gz: 7d8dfd03aa32a477eee06ad88c82b5f3ee54cf4fe740409f7ddc0ae6755fcd94a134e922184791145c36bdb7050d2f3b03e3a62cc35b9305353ce67b8bcc0ea6
7
- data.tar.gz: dd283e39fced3499b0a41cd8e92906f1fd623c6e3514834c2d63a27295d454f9e85db86050c47de1205e81aa285f357671f35833207d3bb79788bd0e2aaa2cc0
6
+ metadata.gz: 28ed985d86ec4b0b67cf9a30ed175072932be51fe53b0cf7473b07bef513dde50a8be2e0ad59ac3f8cc33472a1911538c9ad9f7f1384b09102246b97490d83a5
7
+ data.tar.gz: 519796d4cce626aee4c8758f99f9ab3d98b0d50ea0d91daabde9cffdfe2c76c00bf5c44ef3baf07a59490afda2abb5be57228db6546887128bcff9d87133fd1d
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+ require 'trollop'
3
+ require 'cloudformation_converger'
4
+ require 'yaml'
5
+
6
+ opts = Trollop::options do
7
+ opt :path_to_stacks, '', type: :strings, required: true
8
+ opt :stack_names, '', type: :strings, required: true
9
+ opt :path_to_yaml, '', type: :string, required: false
10
+ end
11
+
12
+ Trollop::die :stack_names, 'path-to-stacks and stack-names need to line up in parallel' unless opts[:path_to_stacks].length == opts[:stack_names].length
13
+
14
+ bindings = opts[:path_to_yaml].nil? ? nil : YAML.load_file(opts[:path_to_yaml])
15
+
16
+ begin
17
+ cloudformation_stacks = []
18
+ opts[:path_to_stacks].each_with_index do |path_to_stack, index|
19
+ cloudformation_stacks << {
20
+ stack_name: opts[:stack_names][index],
21
+ path_to_stack: path_to_stack
22
+ }
23
+ end
24
+
25
+ outputs = CloudFormationConverger.new.chain_converge(cloudformation_stacks: cloudformation_stacks,
26
+ input_bindings: bindings)
27
+
28
+ puts outputs.to_yaml
29
+ rescue Exception => e
30
+ STDERR.puts e.message
31
+ exit 1
32
+ end
33
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - someguy
@@ -59,9 +59,11 @@ executables:
59
59
  - yaml_get
60
60
  - cfndsl_chain_converge
61
61
  - cfn_converge
62
+ - cfn_chain_converge
62
63
  extensions: []
63
64
  extra_rdoc_files: []
64
65
  files:
66
+ - bin/cfn_chain_converge
65
67
  - bin/cfn_converge
66
68
  - bin/cfndsl_chain_converge
67
69
  - bin/cfndsl_converge