Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

99
Visualizações
Export an array from NodeJS directly to amazon S3 without first saving it locally?

This is the working flow of my application:

  1. Get the data from sources.
  2. Perform some operations.
  3. Save the data on a csv file created locally.
  4. After the completion, upload the csv to S3 and delete the local file.

However, when I tried to deploy this application in heroku, I get an error in writeFileSync and cannot create files. To tackle that, I want to store the csv values in a nested array, and then upload directly to S3 as a csv file without local interference.

How do I achieve this? If there are better approaches, please do mention.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Yes, you can write strings directly to S3 using the AWS SDK's putObject method.

The Body parameter can be one of:

  • Buffer
  • string value
  • stream
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda