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 +4 -4
- data/exe/sumomo +4 -1
- data/lib/sumomo/ec2.rb +2 -1
- data/lib/sumomo/stack.rb +6 -3
- data/lib/sumomo/version.rb +1 -1
- data/lib/sumomo.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14cea3c6a1850dccbf4f44fc0de5aac2f55082d2d881bd6b09486715b1514629
|
4
|
+
data.tar.gz: 2e8b573a332ba356006ee19f00cc92150faf04ad0b4bd05e1515f6ad150532d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
63
|
-
|
64
|
-
|
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
|
data/lib/sumomo/version.rb
CHANGED
data/lib/sumomo.rb
CHANGED
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.
|
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
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|