Code Monkey home page Code Monkey logo

Comments (6)

NSchnack avatar NSchnack commented on July 30, 2024 1

It needs to be set as a environment variable which you can do with Sys.setenv or set before starting the R session. I would suggest something similar to:
do.call(Sys.setenv, list( "AWS_ACCESS_KEY_ID" = "access_key", "AWS_SECRET_ACCESS_KEY" = "secret_key", "AWS_DEFAULT_REGION" = "region" ) )

from redshifttools.

sicarul avatar sicarul commented on July 30, 2024

That error is exactly that. Verify with the same aws credentials if you can delete the files with e.g. the aws client

from redshifttools.

tcederquist avatar tcederquist commented on July 30, 2024

@sicarul I receive this exact same response. I can use another tool and same credentials to connect and delete the contents of this bucket. I'm using the master branch at the moment due to the s3 session token issue. Of note, I'm using R 3.5.2 and selected 'cran only packages' when installed your master branch with devtools.

from redshifttools.

NSchnack avatar NSchnack commented on July 30, 2024

The issue seems to be that access_key, secret_key etc. are overwritten by environment variables you haven't set. Try to set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY & AWS_DEFAULT_REGION.

from redshifttools.

AlexSiormpas avatar AlexSiormpas commented on July 30, 2024

Thanks @NSchnack . How may I achieve this?
I tried to do it with the following code example:

AWS_DEFAULT_REGION<-"eu-west-1"

but when I query it with the below to validate, I'm getting a blank field:

 Sys.getenv("AWS_DEFAULT_REGION")
[1] ""

from redshifttools.

nba2020 avatar nba2020 commented on July 30, 2024

worked thanks @NSchnack

from redshifttools.

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.