cloudformation-tool 1.5.9 → 1.5.11

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: f7be18ff2c6036cdb06141cdd8228ac6ddf638817255dc382cb556d092daed68
4
- data.tar.gz: e524b656930e02f090a10643a7b2861b31a6ac719bfec3c83c2185baaaac690b
3
+ metadata.gz: cb86554b52393bc384564501876f49e53f597abf7b934b8bc1a4e7227d34cb9b
4
+ data.tar.gz: 162aa55a29712c89f9981e47aee38fdf75f7ff8f197edc988322badf8bcd4331
5
5
  SHA512:
6
- metadata.gz: 6b5fd5bffc734fe2336b8410431a11ba4f70e1271373266efbe8ad4044004f2ddd653568298e3c700ab084315e8c34504ac371b44879991cae3c8fb0a7295a82
7
- data.tar.gz: 500a58da8d2663bf28580e471c20f20acdbb5573227d19412262890abfb97669251d478e1e3917c7423bd790db280fe3c30a8af0cd3d1701ce8ec14b75d69fd0
6
+ metadata.gz: c728d7363249c04d7da2158260bcc5b3c7a8db4986b1a9bed62d2f72ca44dd266b91a5cbb82b03ba93310dce13ed42a19e2d75c78cb04066e30217c04d56d647
7
+ data.tar.gz: c3eb121a886a97f3e56f20fa658d88131f293de0a0ca44295b3b2bae9ab935d92e367798b28a3006af04d7bc42dd5c7bd26e9a4516a2c291b3021937f845a867
@@ -11,5 +11,7 @@ module CloudFormationTool
11
11
 
12
12
  class StackDoesNotExistError < BaseError; end
13
13
 
14
+ class AuthError < BaseError; end
15
+
14
16
  end
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '1.5.9'
2
+ VERSION = '1.5.11'
3
3
  end
@@ -89,7 +89,6 @@ module CloudFormationTool
89
89
  end
90
90
 
91
91
  def aws_config
92
- p region
93
92
  {
94
93
  # credentials: awscreds,
95
94
  profile: profile,
@@ -106,7 +105,11 @@ module CloudFormationTool
106
105
  def awss3(s3reg = nil)
107
106
  require 'aws-sdk-s3'
108
107
  s3reg ||= region
109
- ($__aws_s3 ||= {})[region] ||= Aws::S3::Client.new aws_config.merge(region: s3reg)
108
+ begin
109
+ ($__aws_s3 ||= {})[region] ||= Aws::S3::Client.new aws_config.merge(region: s3reg)
110
+ rescue Aws::Errors::InvalidSSOToken => e
111
+ raise CloudFormationTool::Errors::AuthError, "SSO login failed: #{e.message}"
112
+ end
110
113
  end
111
114
 
112
115
  def awscf
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.9
4
+ version: 1.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-09 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake