lib/capistrano/asg/rolling/aws.rb in capistrano-asg-rolling-0.1.0 vs lib/capistrano/asg/rolling/aws.rb in capistrano-asg-rolling-0.2.0
- old
+ new
@@ -25,18 +25,22 @@
options[:http_wire_trace] = true if ENV['AWS_HTTP_WIRE_TRACE'] == '1'
options
end
def aws_credentials
- ::Aws::Credentials.new(aws_access_key_id, aws_secret_access_key)
+ ::Aws::Credentials.new(aws_access_key_id, aws_secret_access_key, aws_session_token)
end
def aws_access_key_id
Configuration.aws_access_key_id
end
def aws_secret_access_key
Configuration.aws_secret_access_key
+ end
+
+ def aws_session_token
+ Configuration.aws_session_token
end
def aws_region
Configuration.aws_region
end