sumomo 0.8.13 → 0.8.14

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: 59006b478da1bfee06aeda72c61439bc432de97224c4d79b948cb9e4a69f1716
4
- data.tar.gz: 87cad941fc2df847ab01578d970f622a281cd2237a083427163a7de447682fd9
3
+ metadata.gz: 14cea3c6a1850dccbf4f44fc0de5aac2f55082d2d881bd6b09486715b1514629
4
+ data.tar.gz: 2e8b573a332ba356006ee19f00cc92150faf04ad0b4bd05e1515f6ad150532d7
5
5
  SHA512:
6
- metadata.gz: a8ba7e03cdeccec460b30a458ec8fd13308212c19b65a9cff287d6cd064adf30fae512da4afcb39c8cfe0fd9f162bc613ea9eb7783794be50527bc41d0d0251f
7
- data.tar.gz: a66f919eb07e22c61cb9428e756425150dc1bfc281599dfe51d40b8dfb13c7680fa927af09fe116169ea5810a170a3c8d38fedddabcb8d14b7d18ea96b442b8a
6
+ metadata.gz: 0c12ab52d9b883043cc9aa335ca2ce44420061c328831708c25a7a66f76289e7e913dc8c09b271e33067fbe2a9c98bc43403830ffbadadb3831b75529f5dcf27
7
+ data.tar.gz: 21bc6b234abed78dc5effb72cf516200b5ae9a1f104bcbc22b629c9df5ed8a702ba8142063bc2e950b6fea86b026da00c731d4a556c281c55b4e6d23b7b7c435
data/exe/sumomo CHANGED
@@ -56,7 +56,10 @@ cmd_opts = case cmd
56
56
  when 'login'
57
57
  puts "Login to stack #{ARGV[0]} instance at #{ARGV[1]}"
58
58
  `aws s3 cp s3://#{ARGV[0]}/cloudformation/#{ARGV[0]}_master_key.pem x.txt`
59
- key = JSON.parse(File.read('x.txt'))['value']
59
+ key = JSON.parse(File.read('x.txt'))['value'].
60
+ gsub('-----BEGIN RSA PRIVATE KEY----- ', "-----BEGIN RSA PRIVATE KEY-----\n").
61
+ gsub(' -----END RSA PRIVATE KEY-----', "\n-----END RSA PRIVATE KEY-----").
62
+ gsub(/(.{64}) /, "\\1\n")
60
63
  File.write('key.pem', key)
61
64
  `chmod 0600 key.pem`
62
65
  exec "ssh -i 'key.pem' ec2-user@#{ARGV[1]} #{ARGV[2]}"
data/lib/sumomo/ec2.rb CHANGED
@@ -96,6 +96,7 @@ module Sumomo
96
96
  call('Fn::Join', '', [
97
97
 
98
98
  "#!/bin/bash -v\n",
99
+ "yum install -y aws-cfn-bootstrap\n",
99
100
  "yum update -y aws-cfn-bootstrap\n",
100
101
 
101
102
  "# Helper function\n",
@@ -510,7 +511,7 @@ module Sumomo
510
511
 
511
512
  if ecs_cluster
512
513
  ecs_config = <<~CONFIG
513
- ECS_CLUSTER={{cluster_name}}
514
+ ECS_CLUSTER={{ cluster_name }}
514
515
  ECS_ENGINE_AUTH_TYPE=docker
515
516
  ECS_ENGINE_AUTH_DATA={"https://index.docker.io/v1/":{"username":"{{docker_username}}","password":"{{docker_password}}","email":"{{docker_email}}"}}
516
517
  CONFIG
data/lib/sumomo/stack.rb CHANGED
@@ -26,6 +26,7 @@ module Sumomo
26
26
  runtime: 'nodejs14.x',
27
27
  memory_size: 128,
28
28
  timeout: 30,
29
+ enable_logging: true,
29
30
  role: nil)
30
31
 
31
32
  name ||= make_default_resource_name('Lambda')
@@ -59,9 +60,11 @@ module Sumomo
59
60
  Role role.Arn
60
61
  end
61
62
 
62
- log_group = make 'AWS::Logs::LogGroup', name: "#{name}LogGroup" do
63
- LogGroupName call('Fn::Join', '', ['/aws/lambda/', fun])
64
- RetentionInDays 30
63
+ if enable_logging
64
+ make 'AWS::Logs::LogGroup', name: "#{name}LogGroup" do
65
+ LogGroupName call('Fn::Join', '', ['/aws/lambda/', fun])
66
+ RetentionInDays 30
67
+ end
65
68
  end
66
69
 
67
70
  fun
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sumomo
4
- VERSION = '0.8.13'
4
+ VERSION = '0.8.14'
5
5
  end
data/lib/sumomo.rb CHANGED
@@ -117,7 +117,7 @@ module Sumomo
117
117
  stack_name: name,
118
118
  template_url: store.url('cloudformation/template'),
119
119
  parameters: hidden_values,
120
- disable_rollback: true,
120
+ disable_rollback: false,
121
121
  capabilities: ['CAPABILITY_IAM']
122
122
  }
123
123
 
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.8.13
4
+ version: 0.8.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-26 00:00:00.000000000 Z
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler