lib/multiwoven/integrations/source/amazon_s3/client.rb in multiwoven-integrations-0.4.0 vs lib/multiwoven/integrations/source/amazon_s3/client.rb in multiwoven-integrations-0.4.1

- old
+ new

@@ -53,11 +53,10 @@ session = @session_name.gsub(/\s+/, "-") @session_name = "" if connection_config[:auth_type] == "user" Aws::Credentials.new(connection_config[:access_id], connection_config[:secret_access]) elsif connection_config[:auth_type] == "role" - credentials = Aws::Credentials.new(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) - sts_client = Aws::STS::Client.new(region: connection_config[:region], credentials: credentials) + sts_client = Aws::STS::Client.new(region: connection_config[:region]) resp = sts_client.assume_role({ role_arn: connection_config[:arn], role_session_name: session, external_id: connection_config[:external_id] })