stackup 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0711fc64ee45d78fe5e7d71ab1afff01906ceb1
4
- data.tar.gz: b7374819ee928e7c3147980b88a2ef5b70c84c67
3
+ metadata.gz: f55503b308cdd370ea8bc46922ad2acbc9567886
4
+ data.tar.gz: 2b623ad6f1352d455ff3693b5e89a0dca11aec71
5
5
  SHA512:
6
- metadata.gz: a4574add771970c33b04d0b1cd60007b1e72f03863241e69912b880ec6b77d5f55149cfaafffe823a88a5c017097df05b2047981ed05c2bf4abdb93707e827bb
7
- data.tar.gz: e1ba38d93f94fd8081884c2d01d9568c9572eba7ea38b0be5213607709b123ac2008aa91cbfe9aff8a6ece7978c20636ad2519a819a543dbcf87f1e90de6558e
6
+ metadata.gz: 58ab92b1218ba18e61b0d2bcab092963f8215436e26122ee9d43e8f6568871ec9c19472864fced2068ead2c1a0a307a43c00838451605ba9cbbdcb4ec489cf80
7
+ data.tar.gz: 9a0f8d2415a2dc15c7a09177845ca395d2eefd11ee1184eddae1903580b703a41769338719dab03177cd2c3029374e4ae36aecfd0a7c392f2a71d69c4b956b1a
data/README.md CHANGED
@@ -216,3 +216,32 @@ If you're sensible, you'll replace "latest", with a specific [version](https://r
216
216
 
217
217
  The default working-directory within the container is `/cwd`;
218
218
  hence the volume mount to make files available from the host system.
219
+
220
+ ## IAM Permissions
221
+
222
+ ### up
223
+
224
+ This policy grants the principal all actions required by `stackup up` for any cloudformation stack:
225
+
226
+ ```
227
+ {
228
+ "Version": "2012-10-17",
229
+ "Statement": [
230
+ {
231
+ "Effect": "Allow",
232
+ "Action": [
233
+ "cloudformation:CreateStack",
234
+ "cloudformation:DeleteStack",
235
+ "cloudformation:DescribeStackEvents",
236
+ "cloudformation:DescribeStackResource",
237
+ "cloudformation:DescribeStacks",
238
+ "cloudformation:SetStackPolicy",
239
+ "cloudformation:UpdateStack"
240
+ ],
241
+ "Resource": [
242
+ "*"
243
+ ]
244
+ }
245
+ ]
246
+ }
247
+ ```
@@ -7,6 +7,7 @@ module Stackup
7
7
  class << self
8
8
 
9
9
  def new(arg)
10
+ arg ||= {}
10
11
  arg = hashify(arg) unless arg.is_a?(Hash)
11
12
  super(arg)
12
13
  end
@@ -1,5 +1,5 @@
1
1
  module Stackup
2
2
 
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
 
5
5
  end
@@ -143,6 +143,23 @@ describe Stackup::Parameters do
143
143
  end
144
144
 
145
145
  end
146
+
147
+ context "with empty parameter file" do
148
+
149
+ let(:input_records) { false }
150
+
151
+ subject(:parameters) { Stackup::Parameters.new(input_records) }
152
+
153
+ describe "#to_hash" do
154
+
155
+ it "doesn't crash" do
156
+ expected = {}
157
+ expect(parameters.to_hash).to eql(expected)
158
+ end
159
+
160
+ end
161
+
162
+ end
146
163
 
147
164
  end
148
165
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-24 00:00:00.000000000 Z
12
+ date: 2017-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-resources
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.6.14
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Manage CloudFormation stacks