Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signed urls for S3 #16

Open
gaffo opened this issue Oct 4, 2010 · 2 comments
Open

Signed urls for S3 #16

gaffo opened this issue Oct 4, 2010 · 2 comments

Comments

@gaffo
Copy link
Contributor

gaffo commented Oct 4, 2010

I can't find a method to create the signed url for S3. Is there one?

@phiggins
Copy link
Contributor

phiggins commented Oct 4, 2010

I don't think the AWS::S3 objects support generating a signed URL, but the lower-level S3Interface class does. See this link: http://rubydoc.info/github/appoxy/aws/master/Aws/S3Interface#get_link-instance_method

@tomandersen
Copy link

The generatrors are what you need:
bucket_gen = Aws::S3Generator::Bucket.create(s3, bucket)

  a_cloud_item.preview_url = metaBucket_gen.get(itemkey, expiresAt) #=> https://s3.amazonaws.com:443/my_awesome_bucket/my_cool_key?Signature=h...M%3D&Expires=1180820032&AWSAccessKeyId=1...2

treeder pushed a commit that referenced this issue Apr 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants