sumomo 0.10.1 → 0.10.2

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
  SHA256:
3
- metadata.gz: 3f4f67797a004db69b413bc1abd72dd8d26a289847a1ec6943d4b84d3ec2e034
4
- data.tar.gz: b28799dfccbebbcb03f3a96af34f383bd94d2ec979c405e354ea36164f11ab88
3
+ metadata.gz: 7438e8125e7b38488797c60d301417efc9ffba234848ae101e25df6bd663d23c
4
+ data.tar.gz: 2d0fa2741b9e03230d72a56e9b29dffeedf685792423606b2ec10cbe0743822c
5
5
  SHA512:
6
- metadata.gz: e4ca377095ae8386d059a35f32efc6c7f57696dd1457301beeee36e6734d437c1cb1b09f1ff4263f9d3d01d517d6bc0aa42e9377c9c0a653e02325e2c7bf6e7c
7
- data.tar.gz: 131bf090f8161b6ebe07ddd0eefb304e34426a7aca4c19eb4215111d9b61641977a73ba27baac471f81c6abc6fa6a908bb3438b5c06ca9230a209a3918ae5bd4
6
+ metadata.gz: 70f9ffcc5462638f922f862c7388c0347a649a2d384824438e05e7e2f4ae388c3ce521221a16b4935e80bcaaa0d1f29039eecc4ae6df77ae7468065acb1d7c51
7
+ data.tar.gz: 346d98d824627a7dd7c66a766faffa38996663945f0a8488d7465fa87f4458b42f5d081e2b9be49f73ea093de7e77be2f414536e704c531aca8bb6b3777c0203
data/lib/sumomo/stack.rb CHANGED
@@ -203,7 +203,7 @@ module Sumomo
203
203
  statements: [
204
204
  {
205
205
  'Effect' => 'Allow',
206
- 'Action' => ['logs:CreateLogStream', 'logs:PutLogEvents'],
206
+ 'Action' => ['logs:CreateLogGroup', 'logs:CreateLogStream', 'logs:PutLogEvents'],
207
207
  'Resource' => 'arn:aws:logs:*:*:*'
208
208
  },
209
209
  {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sumomo
4
- VERSION = '0.10.1'
4
+ VERSION = '0.10.2'
5
5
  end
data/lib/sumomo.rb CHANGED
@@ -42,6 +42,8 @@ module Sumomo
42
42
  s3.head_bucket(bucket: name)
43
43
  rescue Aws::S3::Errors::NotFound => e
44
44
  s3.create_bucket(bucket: name)
45
+ rescue => e
46
+ exit 1
45
47
  end
46
48
 
47
49
  store = S3Cabinet::S3Cabinet.new(nil, nil, name, region)
@@ -171,12 +173,9 @@ module Sumomo
171
173
  stack_name: name,
172
174
  template_url: store.url('cloudformation/template'),
173
175
  parameters: hidden_values,
174
- disable_rollback: rollback == :disable,
175
176
  capabilities: ['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']
176
177
  }
177
178
 
178
- update_options[:disable_rollback] = false if !changeset
179
-
180
179
  begin
181
180
  if changeset
182
181
  cf.create_change_set(
@@ -184,7 +183,10 @@ module Sumomo
184
183
  change_set_name: "Change#{curtimestr}"
185
184
  )
186
185
  else
187
- cf.update_stack(update_options)
186
+ cf.update_stack({
187
+ disable_rollback: rollback == :disable,
188
+ **update_options
189
+ })
188
190
  end
189
191
 
190
192
  rescue StandardError => e
@@ -193,7 +195,7 @@ module Sumomo
193
195
  update_options[:notification_arns] = sns_arn if sns_arn
194
196
  cf.create_stack(update_options)
195
197
  else
196
- p e
198
+ p update_options
197
199
  puts "Error: #{e.message}"
198
200
  end
199
201
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumomo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-14 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -2593,7 +2593,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2593
2593
  - !ruby/object:Gem::Version
2594
2594
  version: '0'
2595
2595
  requirements: []
2596
- rubygems_version: 3.1.2
2596
+ rubygems_version: 3.2.33
2597
2597
  signing_key:
2598
2598
  specification_version: 4
2599
2599
  summary: An advanced infrastructure description language for AWS