Skip to content

Instantly share code, notes, and snippets.

@ppicazo
ppicazo / fake-s3-config.rb
Created May 12, 2016 23:17 — forked from ktopping/fake-s3-config.rb
fake s3 config
# Add the following to /etc/hosts:
127.0.0.1 local.s3.endpoint local-bucket.local.s3.endpoint
# Run the following in your rails console, in order to create a bucket:
s3=AWS::S3.new(
:access_key_id => 'anything',
:secret_access_key => 'anything',
:s3_endpoint => 'local.s3.endpoint',
:s3_port => 4567,
:use_ssl => false