Method: CloudFormationTool#awss3
- Defined in:
- lib/cloud_formation_tool.rb
#awss3(s3reg = nil) ⇒ Object
105 106 107 108 109 110 111 112 113 |
# File 'lib/cloud_formation_tool.rb', line 105 def awss3(s3reg = nil) require 'aws-sdk-s3' s3reg ||= region begin ($__aws_s3 ||= {})[region] ||= Aws::S3::Client.new aws_config.merge(region: s3reg) rescue Aws::Errors::InvalidSSOToken => e raise CloudFormationTool::Errors::AuthError, "SSO login failed: #{e.message}" end end |