dpl 2.0.3.beta.1 → 2.0.3.beta.4

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: 9d618f4c1fa2c6225c69987b5349d56a4fa28b8eb911bbee5aba93e0a10c2a83
4
- data.tar.gz: 7483c4425320d9bb22971f67366c630dc1dd2aa27ab6aee1cdbbd0b11ad97d55
3
+ metadata.gz: 5af4ab95e79293f7e9f3806f5d9723cb189f320275e24744749c9aed49974f91
4
+ data.tar.gz: 54509278236196a41db24890e9163eaf53a5180097767fca19584ddac4358bfe
5
5
  SHA512:
6
- metadata.gz: 1945bb20863999e620675325ff5681e73624540652423cd91b2194bf01077a385ba026aeb1b5436674d2d1970f078ffdb0ea862a6b5c308029729293e5a7091b
7
- data.tar.gz: 898ae8f27890100e81bb55af3d409c0e72a0068e1082ca8ed99512f98b4057f82398e3e5e3713cb457a8fed14ac44e412917a80f49548d81bb6f34772a2bd9aa
6
+ metadata.gz: 2190b5e32e4247e3c4c7f7dc0c79299cf2ec68026dd7708a4b061ecd6171cb5869cb317f1653ed29422e8ba244cdcde9e9712a0f6c9131ace90a18f304f7758c
7
+ data.tar.gz: f8508083406134d318aae2ba691d4dec306705dff7bd84140af2d0c737ddfdf8a79a933d307b1971ce4192b8d69df208d805444850df93fe36e21f4b061c0825
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dpl (2.0.3.beta.1)
4
+ dpl (2.0.3.beta.4)
5
5
  cl (~> 1.0)
6
6
 
7
7
  GEM
@@ -11,38 +11,38 @@ GEM
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
12
  awesome_print (1.9.2)
13
13
  aws-eventstream (1.2.0)
14
- aws-partitions (1.547.0)
15
- aws-sdk-cloudformation (1.64.0)
16
- aws-sdk-core (~> 3, >= 3.125.0)
14
+ aws-partitions (1.619.0)
15
+ aws-sdk-cloudformation (1.70.0)
16
+ aws-sdk-core (~> 3, >= 3.127.0)
17
17
  aws-sigv4 (~> 1.1)
18
- aws-sdk-codedeploy (1.47.0)
19
- aws-sdk-core (~> 3, >= 3.125.0)
18
+ aws-sdk-codedeploy (1.49.0)
19
+ aws-sdk-core (~> 3, >= 3.127.0)
20
20
  aws-sigv4 (~> 1.1)
21
- aws-sdk-core (3.125.3)
21
+ aws-sdk-core (3.132.0)
22
22
  aws-eventstream (~> 1, >= 1.0.2)
23
23
  aws-partitions (~> 1, >= 1.525.0)
24
24
  aws-sigv4 (~> 1.1)
25
- jmespath (~> 1.0)
26
- aws-sdk-ecr (1.52.0)
27
- aws-sdk-core (~> 3, >= 3.125.0)
25
+ jmespath (~> 1, >= 1.6.1)
26
+ aws-sdk-ecr (1.56.0)
27
+ aws-sdk-core (~> 3, >= 3.127.0)
28
28
  aws-sigv4 (~> 1.1)
29
- aws-sdk-elasticbeanstalk (1.49.0)
30
- aws-sdk-core (~> 3, >= 3.125.0)
29
+ aws-sdk-elasticbeanstalk (1.51.0)
30
+ aws-sdk-core (~> 3, >= 3.127.0)
31
31
  aws-sigv4 (~> 1.1)
32
- aws-sdk-kms (1.53.0)
33
- aws-sdk-core (~> 3, >= 3.125.0)
32
+ aws-sdk-kms (1.58.0)
33
+ aws-sdk-core (~> 3, >= 3.127.0)
34
34
  aws-sigv4 (~> 1.1)
35
- aws-sdk-lambda (1.77.0)
36
- aws-sdk-core (~> 3, >= 3.125.0)
35
+ aws-sdk-lambda (1.84.0)
36
+ aws-sdk-core (~> 3, >= 3.127.0)
37
37
  aws-sigv4 (~> 1.1)
38
- aws-sdk-opsworks (1.39.0)
39
- aws-sdk-core (~> 3, >= 3.125.0)
38
+ aws-sdk-opsworks (1.41.0)
39
+ aws-sdk-core (~> 3, >= 3.127.0)
40
40
  aws-sigv4 (~> 1.1)
41
- aws-sdk-s3 (1.111.1)
42
- aws-sdk-core (~> 3, >= 3.125.0)
41
+ aws-sdk-s3 (1.114.0)
42
+ aws-sdk-core (~> 3, >= 3.127.0)
43
43
  aws-sdk-kms (~> 1)
44
44
  aws-sigv4 (~> 1.4)
45
- aws-sigv4 (1.4.0)
45
+ aws-sigv4 (1.5.1)
46
46
  aws-eventstream (~> 1, >= 1.0.2)
47
47
  belafonte (0.5.0)
48
48
  optionally
@@ -119,7 +119,7 @@ GEM
119
119
  erubis (2.7.0)
120
120
  escape (0.0.4)
121
121
  eventmachine (1.2.7)
122
- excon (0.90.0)
122
+ excon (0.92.4)
123
123
  ey-core (3.5.0)
124
124
  addressable
125
125
  awesome_print
@@ -140,7 +140,7 @@ GEM
140
140
  rack
141
141
  sshkey (~> 1.6)
142
142
  table_print
143
- ey-hmac (2.2.0)
143
+ ey-hmac (2.4.0)
144
144
  facter (2.5.7)
145
145
  faraday (0.9.2)
146
146
  multipart-post (>= 1.2, < 3)
@@ -186,17 +186,17 @@ GEM
186
186
  thor (~> 0.20.0)
187
187
  hashdiff (1.0.1)
188
188
  hashie (3.6.0)
189
- hiera (3.8.0)
189
+ hiera (3.10.0)
190
190
  highline (1.7.10)
191
191
  hocon (1.3.1)
192
192
  http-accept (1.7.0)
193
- http-cookie (1.0.4)
193
+ http-cookie (1.0.5)
194
194
  domain_name (~> 0.5)
195
195
  http_parser.rb (0.8.0)
196
196
  httpclient (2.8.3)
197
197
  iniparse (1.5.0)
198
198
  ipaddress (0.8.3)
199
- jmespath (1.5.0)
199
+ jmespath (1.6.1)
200
200
  json (1.8.6)
201
201
  json_pure (1.8.6)
202
202
  libyajl2 (2.1.0)
@@ -246,7 +246,7 @@ GEM
246
246
  plist (~> 3.1)
247
247
  systemu (~> 2.6.4)
248
248
  wmi-lite (~> 1.0)
249
- oj (3.13.11)
249
+ oj (3.13.20)
250
250
  oj_mimic_json (1.0.1)
251
251
  optionally (0.0.3)
252
252
  packagecloud-ruby (1.0.8)
@@ -276,7 +276,7 @@ GEM
276
276
  rest-client (~> 2.0)
277
277
  puppet-resource_api (1.8.14)
278
278
  hocon (>= 1.0)
279
- rack (2.2.3)
279
+ rack (2.2.4)
280
280
  rake (12.3.3)
281
281
  regstry (1.0.15)
282
282
  rendezvous (0.1.3)
@@ -286,22 +286,22 @@ GEM
286
286
  mime-types (>= 1.16, < 4.0)
287
287
  netrc (~> 0.8)
288
288
  rexml (3.2.5)
289
- rspec (3.10.0)
290
- rspec-core (~> 3.10.0)
291
- rspec-expectations (~> 3.10.0)
292
- rspec-mocks (~> 3.10.0)
293
- rspec-core (3.10.1)
294
- rspec-support (~> 3.10.0)
295
- rspec-expectations (3.10.1)
289
+ rspec (3.11.0)
290
+ rspec-core (~> 3.11.0)
291
+ rspec-expectations (~> 3.11.0)
292
+ rspec-mocks (~> 3.11.0)
293
+ rspec-core (3.11.0)
294
+ rspec-support (~> 3.11.0)
295
+ rspec-expectations (3.11.0)
296
296
  diff-lcs (>= 1.2.0, < 2.0)
297
- rspec-support (~> 3.10.0)
297
+ rspec-support (~> 3.11.0)
298
298
  rspec-its (1.3.0)
299
299
  rspec-core (>= 3.0.0)
300
300
  rspec-expectations (>= 3.0.0)
301
- rspec-mocks (3.10.2)
301
+ rspec-mocks (3.11.1)
302
302
  diff-lcs (>= 1.2.0, < 2.0)
303
- rspec-support (~> 3.10.0)
304
- rspec-support (3.10.3)
303
+ rspec-support (~> 3.11.0)
304
+ rspec-support (3.11.0)
305
305
  rspec_junit_formatter (0.2.3)
306
306
  builder (< 4)
307
307
  rspec-core (>= 2, < 4, != 2.12.0)
@@ -310,7 +310,7 @@ GEM
310
310
  addressable (>= 2.3.5)
311
311
  faraday (> 0.8, < 2.0)
312
312
  semantic_puppet (1.0.4)
313
- serverspec (2.41.8)
313
+ serverspec (2.42.0)
314
314
  multi_json
315
315
  rspec (~> 3.0)
316
316
  rspec-its
@@ -321,7 +321,7 @@ GEM
321
321
  json (>= 1.8, < 3)
322
322
  simplecov-html (~> 0.10.0)
323
323
  simplecov-html (0.10.2)
324
- specinfra (2.83.1)
324
+ specinfra (2.83.3)
325
325
  net-scp
326
326
  net-ssh (>= 2.7)
327
327
  net-telnet (= 0.1.1)
@@ -334,21 +334,21 @@ GEM
334
334
  term-ansicolor (1.7.1)
335
335
  tins (~> 1.0)
336
336
  thor (0.20.3)
337
- tins (1.31.0)
337
+ tins (1.31.1)
338
338
  sync
339
- tomlrb (2.0.1)
339
+ tomlrb (2.0.3)
340
340
  unf (0.1.4)
341
341
  unf_ext
342
- unf_ext (0.0.8)
342
+ unf_ext (0.0.8.2)
343
343
  uuidtools (2.1.5)
344
- webmock (3.14.0)
344
+ webmock (3.18.1)
345
345
  addressable (>= 2.8.0)
346
346
  crack (>= 0.3.2)
347
347
  hashdiff (>= 0.4.0, < 2.0.0)
348
348
  websocket-driver (0.7.5)
349
349
  websocket-extensions (>= 0.1.0)
350
350
  websocket-extensions (0.1.5)
351
- wmi-lite (1.0.5)
351
+ wmi-lite (1.0.7)
352
352
  wrapomatic (0.3.0)
353
353
 
354
354
  PLATFORMS
@@ -359,7 +359,7 @@ DEPENDENCIES
359
359
  aws-sdk-codedeploy (~> 1.0)
360
360
  aws-sdk-ecr (~> 1.0)
361
361
  aws-sdk-elasticbeanstalk (~> 1.0)
362
- aws-sdk-lambda (~> 1.0)
362
+ aws-sdk-lambda (~> 1.84.0)
363
363
  aws-sdk-opsworks (~> 1.0)
364
364
  aws-sdk-s3 (~> 1.0)
365
365
  chef (~> 12.0)
@@ -393,4 +393,4 @@ RUBY VERSION
393
393
  ruby 2.6.3p62
394
394
 
395
395
  BUNDLED WITH
396
- 2.1.4
396
+ 2.2.21
@@ -1,2 +1,8 @@
1
1
  #!/bin/sh
2
- exec ssh -o StrictHostKeychecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -i %s $@
2
+ exec ssh \
3
+ -o CheckHostIP=no \
4
+ -o IdentitiesOnly=yes \
5
+ -o StrictHostKeychecking=no \
6
+ -o UserKnownHostsFile=/dev/null \
7
+ -i %s \
8
+ $@
@@ -13,7 +13,8 @@ module Dpl
13
13
  tbd
14
14
  str
15
15
 
16
- gem 'aws-sdk-lambda', '~> 1.0'
16
+ gem 'aws-sdk-lambda', '~> 1.84.0'
17
+ gem 'nokogiri', '< 1.10'
17
18
  gem 'rubyzip', '~> 1.2.2', require: 'zip'
18
19
 
19
20
  env :aws, :lambda
@@ -32,7 +33,7 @@ module Dpl
32
33
  opt '--subnet_ids IDS', 'List of subnet IDs to be added to the function', type: :array, note: 'Needs the ec2:DescribeSubnets and ec2:DescribeVpcs permission for the user of the access/secret key to work'
33
34
  opt '--security_group_ids IDS', 'List of security group IDs to be added to the function', type: :array, note: 'Needs the ec2:DescribeSecurityGroups and ec2:DescribeVpcs permission for the user of the access/secret key to work'
34
35
  opt '--environment VARS', 'List of Environment Variables to add to the function', type: :array, format: /[\w\-]+=.+/, note: 'Can be encrypted for added security', alias: :environment_variables
35
- opt '--runtime NAME', 'Lambda runtime to use', note: 'required when creating a new function', default: 'nodejs10.x', enum: %w(nodejs12.x nodejs10.x python3.8 python3.7 python3.6 python2.7 ruby2.7 ruby2.5 java11 java8 go1.x dotnetcore2.1)
36
+ opt '--runtime NAME', 'Lambda runtime to use', note: 'required when creating a new function', default: 'nodejs12.x', enum: %w(nodejs16.x nodejs14.x nodejs12.x python3.8 python3.7 python3.6 python2.7 ruby2.7 ruby2.5 java11 java8 go1.x dotnetcore2.1)
36
37
  opt '--dead_letter_arn ARN', 'ARN to an SNS or SQS resource used for the dead letter queue.'
37
38
  opt '--kms_key_arn ARN', 'KMS key ARN to use to encrypt environment_variables.'
38
39
  opt '--tracing_mode MODE', 'Tracing mode', default: 'PassThrough', enum: %w(Active PassThrough), note: 'Needs xray:PutTraceSegments xray:PutTelemetryRecords on the role'
@@ -76,9 +77,15 @@ module Dpl
76
77
  end
77
78
 
78
79
  def update
79
- arn = update_config
80
- update_tags(arn) if function_tags?
81
- update_code
80
+ begin
81
+ arn = update_config
82
+ client.wait_until(:function_updated, { function_name: function_name })
83
+ update_tags(arn) if function_tags?
84
+ client.wait_until(:function_updated, { function_name: function_name })
85
+ update_code
86
+ rescue Aws::Waiters::Errors::WaiterFailed
87
+ error 'Update timed out.'
88
+ end
82
89
  end
83
90
 
84
91
  def update_config
@@ -58,7 +58,7 @@ module Dpl
58
58
  cmds git_clone: 'git clone --quiet --branch="%{target_branch}" --depth=1 "%{remote_url}" . > /dev/null 2>&1',
59
59
  git_init: 'git init .',
60
60
  git_checkout: 'git checkout --orphan "%{target_branch}"',
61
- check_deploy_key: 'ssh -i %{key} -T git@github.com 2>&1 | grep successful > /dev/null',
61
+ check_deploy_key: 'ssh -i %{key} -T git@%{url} 2>&1 | grep successful > /dev/null',
62
62
  copy_files: 'rsync -rl --exclude .git --delete "%{src_dir}/" .',
63
63
  git_config_email: 'git config user.email %{quoted_email}',
64
64
  git_config_name: 'git config user.name %{quoted_name}',
@@ -119,7 +119,7 @@ module Dpl
119
119
  mv deploy_key, path
120
120
  chmod 0600, path
121
121
  setup_git_ssh path
122
- shell :check_deploy_key, key: path
122
+ shell :check_deploy_key, key: path, url: opts[:url]
123
123
  end
124
124
 
125
125
  def git_clone?
data/lib/dpl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dpl
2
- VERSION = '2.0.3.beta.1'
2
+ VERSION = '2.0.3.beta.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3.beta.1
4
+ version: 2.0.3.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-03-28 00:00:00.000000000 Z
13
+ date: 2022-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cl