-
-
Notifications
You must be signed in to change notification settings - Fork 355
aws-sdk #12
Comments
I want to add support for this. It might be easiest by supplying some sort of monkey patch to aws-sdk to allow it, but that is not ideal. |
Actually you might be able to do it by overriding their dns hostnames by using dnsmasq or /etc/hosts. |
ooh great idea with using /etc/hosts! let me try.. |
i tried adding a /etc/resolver/s3.amazonaws.com file with nameserver 127.0.0.1 and port 10001 but it seems to just hang when i ping the domain after. any ideas? this is the method http://pow.cx/ uses to route all 'dev' top level domains to localhost:20560. |
I am looking into this. you can pass in s3_endpoint (used to be :server) and :s3_port (was :port) in a config yml. However, it is timing out for me. I'll report back when I know more. |
It would be nice to see a workaround for this. Anyone found something else? |
I added a snippet to the "Supported Clients" page showing how to set this up. The major caveat is DNS entries/redirects. If you have set your |
This is documented enough IMO. FWW I have no trouble using fake-s3 with AWS SDK. Consider closing. |
This is how I connect to fake-s3 inside a docker container. The thing to take extra note of is return new AWS.S3({
apiVersion: '2006-03-01',
sslEnabled: false,
accessKeyId: 'x',
secretAccessKey: 'x',
endpoint: resolveEnv('http://$S3_PORT_4569_TCP_ADDR:$S3_PORT_4569_TCP_PORT'),
s3ForcePathStyle: true
}); |
I was running into the timeout issue as well. I thought it was aws-sdk, but it was a problem in my paperlip config. The paperclip initializer expects |
About a month ago I added an example to the wiki, for any future searchers. |
Closing because this is being discussed in multiple places, and this particular discussion is old. For future reference, it should work if you spoof your /etc/hosts to point s3.amazonaws.com to localhost, and make sure you're using the latest versions of Fake S3 and the aws-sdk. If it doesn't, please open a new issue with an example of what you tried. |
is there anyway to support aws-sdk? with the sdk we do not have access to establish_connection to specify host and port :(
The text was updated successfully, but these errors were encountered: