Giter VIP home page Giter VIP logo

Comments (2)

JClackett avatar JClackett commented on May 16, 2024 1

Hey!

I've just updated the repo to change the way we set up the AWS S3 package, so first make sure you have those changes.

Firstly, you'll need to make sure you have an AWS account and create an S3 bucket for your project.

You'll then need to generate an access token + access secret key, in the AWS security credentials section.

Then add these to your .env file in the API package:

AWS_S3_BUCKET=<your-s3-bucket-name>
AWS_ACCESS_KEY_ID=<your-access-key>
AWS_SECRET_ACCESS_KEY=<your-secret-access-key>

There are a few things you need to do to get the S3 bucket to accept uploads and requests:

In your S3 bucket's permissions tab, make sure the "block all public access" is off.

Screenshot 2022-06-20 at 13 04 01

In the "Cross-origin resource sharing (CORS)" section, copy this in:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "PUT",
            "POST"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

from boilerplate-graphql.

angkosal avatar angkosal commented on May 16, 2024 1

It's now ok, Thank you very much @JClackett

from boilerplate-graphql.

Related Issues (20)

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.