Skip to content

Commit

Permalink
Removed AWS credentials for roles
Browse files Browse the repository at this point in the history
  • Loading branch information
julesjans committed Jan 18, 2021
1 parent d5417a2 commit 3489264
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion boucher.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = "boucher"
s.version = "0.4.0"
s.version = "0.5.0"
s.authors = ["'Micah Micah'"]
s.email = ["'[email protected]'"]
s.homepage = "http://github.com/8thlight/boucher"
Expand Down
5 changes: 2 additions & 3 deletions lib/boucher/compute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ module Boucher

EC2_CONFIG = {
:provider => 'AWS',
:aws_secret_access_key => Boucher::Config[:aws_secret_access_key],
:aws_access_key_id => Boucher::Config[:aws_access_key_id],
:region => Boucher::Config[:aws_region]
:region => Boucher::Config[:aws_region],
:use_iam_profile => true
}

def self.compute
Expand Down
3 changes: 1 addition & 2 deletions lib/boucher/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ module Boucher

S3_CONFIG = {
:provider => 'AWS',
:aws_secret_access_key => Boucher::Config[:aws_secret_access_key],
:aws_access_key_id => Boucher::Config[:aws_access_key_id]
:use_iam_profile => true
}

def self.storage
Expand Down
2 changes: 0 additions & 2 deletions spec/boucher/compute_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
it "knows connections options" do
connection = Boucher.compute
connection.should_not == nil
Boucher::EC2_CONFIG[:aws_secret_access_key].should == "secret key"
Boucher::EC2_CONFIG[:aws_access_key_id].should == "public id"
end

it "ssh's a command" do
Expand Down
2 changes: 0 additions & 2 deletions spec/boucher/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
it "knows connections options" do
connection = Boucher.storage
connection.should_not == nil
Boucher::S3_CONFIG[:aws_secret_access_key].should == Boucher::Config[:aws_secret_access_key]
Boucher::S3_CONFIG[:aws_access_key_id].should == Boucher::Config[:aws_access_key_id]
end

context "with dir" do
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
module Boucher
NO_LOAD_CONFIG = true
Config = {
:aws_secret_access_key => "secret key",
:aws_access_key_id => "public id",
:aws_key_filename => "test_key"
}
end
Expand Down

0 comments on commit 3489264

Please sign in to comment.