thisisnic commented on a change in pull request #12131: URL: https://github.com/apache/arrow/pull/12131#discussion_r785008847
########## File path: r/vignettes/fs.Rmd ########## @@ -144,3 +147,28 @@ s3://minioadmin:minioadmin@?scheme=http&endpoint_override=localhost%3A9000 Among other applications, this can be useful for testing out code locally before running on a remote S3 bucket. + +## Disabling the use of environment variables + +As mentioned above, it is possible to make use of environment variables to +configure access. However, if you wish to pass in connection details via a URI +or alternative methods but also have existing AWS environment variables defined, +these may interfere with your session. You can unset these environment +variables using `Sys.unsetenv()`, for example: + +```{r, eval = FALSE} +Sys.unsetenv("AWS_DEFAULT_REGION") +Sys.unsetenv("AWS_S3_ENDPOINT") +``` + +By default, the AWS SDK tries to retrieve metadata about user configuration, +which can cause conficts when passing in connection details via URI (for example +when accessing a MINIO bucket). To disable the use of AWS environment +variables, you can set environment variable `AWS_EC2_METADATA_DISABLED` to +`TRUE`. + +```{r, eval = FALSE} +Sys.setenv(AWS_EC2_METADATA_DISABLED = TRUE) +``` + + Review comment: Just checking - those backticks are required, right? Was it the trailing whitespace that needs removing? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org