diff --git a/lib/digital_opera.rb b/lib/digital_opera.rb
index <HASH>..<HASH> 100644
--- a/lib/digital_opera.rb
+++ b/lib/digital_opera.rb
@@ -5,7 +5,10 @@ require "digital_opera/banker"
 require "digital_opera/presenter/base"
 require "digital_opera/document"
 require "digital_opera/form_object"
-require "digital_opera/services/s3"
+
+if defined?(AWS)
+  require "digital_opera/services/s3"
+end
 
 module DigitalOpera
 end
\ No newline at end of file
diff --git a/lib/digital_opera/services/s3.rb b/lib/digital_opera/services/s3.rb
index <HASH>..<HASH> 100644
--- a/lib/digital_opera/services/s3.rb
+++ b/lib/digital_opera/services/s3.rb
@@ -1,4 +1,5 @@
 require 'aws'
+
 ## Service for handling interactions with S3
 ##
 module DigitalOpera
made the S3 service conditional on AWS actually being installed.