Giter Club home page Giter Club logo

Comments (5)

fox1t avatar fox1t commented on May 20, 2024

Hi. Would you mind providing a reproduction repository?

from turborepo-remote-cache.

paambaati avatar paambaati commented on May 20, 2024

@fox1t I just clicked on the Deploy to Vercel button and set up the environment variables. The repository is exactly the same as this.

from turborepo-remote-cache.

dlehmhus avatar dlehmhus commented on May 20, 2024

I ran into the same issue. I think the problem is, that the vercel deploy link contains S3_ACCESS_KEY and S3_SECRET_KEY instead of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. But those AWS_ vars can not be set on vercel, because they are protected.

According to the docs the aws-sdk doesn't look for those S3_ vars. I'm not sure if that was different in the past?
One easy fix could be sticking with the S3_ vars and settings those manually.

// src/plugins/remote-cache/storage/s3.ts
// ...
export function createS3({ bucket, endpoint }: S3Options) {
  aws.config.update({
    accessKeyId: process.env.S3_ACCESS_KEY,
    secretAccessKey: process.env.S3_SECRET_KEY,
    region: process.env.S3_REGION,
    signatureVersion: 'v4',
  })

  const client = new aws.S3({
// ...

from turborepo-remote-cache.

fox1t avatar fox1t commented on May 20, 2024

This is a good point! We should remap the AWS_ to S3_ ones. Would you mind open a PR?

from turborepo-remote-cache.

fox1t avatar fox1t commented on May 20, 2024

#31

from turborepo-remote-cache.

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.