Git Product home page Git Product logo

meteor-slingshot-example's Introduction

Meteor Slingshot Example

Description

This is a sample project that shows how to create an image uploader using Amazon S3, Meteor, and the slingshot package. Make sure to follow the AWS IAM Setup below before running the sample project.

AWS IAM Setup

  1. Navigate to IAM home https://console.aws.amazon.com/iam/home
  2. Navigate to Users -> Create New Users
  3. Specify username
  4. Make sure generate access key is checked
  5. Show user security credentials and add to settings.json as AWSAccessKeyId and AWSSecretAccessKey
  6. Navigate to Policies -> Create New Policy
  7. Select “Create Your Own Policy”
  8. Give it a name, description
  9. Paste the text from This File into Policy Document making sure to replace (2 occurences) with the name of your bucket you will create in step 4)
  10. Select your newly created policy (you may need to filter for it) and choose “Policy Actions” -> “Attach” and attach your user you created in step 2)
  11. Navigate to s3 home https://console.aws.amazon.com/s3/home
  12. Create a bucket with a name (which you used in step 3) and select “US Standard” Region 1. Note that the region can be different, but requires additional setup with slingshot to work
  13. Select the bucket and then click the Properties tab in the top right
  14. Click “Permissions” to open the dropdown 1. Click Add/Edit CORS configuration and paste in the following Cors Configuration 2. Click Edit Bucket policy and paste in this Bucket Policy making sure to replace <awsaccountid> with your account id (found in Account Settings), <iamusername> with your iam user in part 2), and <bucketname> you created above
  15. Add your bucket name to settings.json using the S3Bucket key
  16. You should be good to go!

meteor-slingshot-example's People

Contributors

curtislarson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

meteor-slingshot-example's Issues

Should the bucket policy be public?

Hey there,

Thanks for putting this example together. It's very helpful. One thing I noticed when using the bucket policy you outlined is that AWS warns me that it's public.

I'm by no means an expert. :) Was hoping you could help me understand if I should be concerned about that. If so, any recommendations on how to make a bucket policy so that it's private and only app users can view and download a file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.