Skip to content

Commit

Permalink
Merge pull request #12 from k1LoW/fix-sts-client-initialize
Browse files Browse the repository at this point in the history
Fix Aws::STS::Client initialize when use access_key_id
  • Loading branch information
k1LoW authored Apr 13, 2017
2 parents ce4293c + dd4e012 commit 58557b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: ruby
rvm:
- 2.2.3
- 2.1.7
- 2.3.4
- 2.2.7

before_install:
- gem update bundler

script:
- bundle exec rake spec
- bundle exec rubocop

1 change: 1 addition & 0 deletions awsecrets.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'awsecrets/version'
Expand Down
7 changes: 2 additions & 5 deletions lib/awsecrets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ def self.load_yaml
@credentials ||= Aws::AssumeRoleCredentials.new(
client: Aws::STS::Client.new(
region: @region,
credentials: Aws::SharedCredentials.new(
region: @region,
access_key_id: @access_key_id,
secret_access_key: @secret_access_key
)
access_key_id: @access_key_id,
secret_access_key: @secret_access_key
),
role_arn: @role_arn,
role_session_name: @role_session_name
Expand Down

0 comments on commit 58557b1

Please sign in to comment.