Skip to content

Setting AWS input files #315

Closed Answered by riazarbi
riazarbi asked this question in Help
Feb 17, 2021 · 2 comments · 12 replies
Discussion options

You must be logged in to vote

Here, for posterity, is my setup. This allows me to use the "url" format on minio-hosted S3 objects. The url path construction may need to be modified for it to work with S3 subdomain-style bucket paths, YMMV.

Will only work after ae0f8f6.

It assumes that environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set.

In R/functions.R

create_s3_handle <- function(object_url) {
  domain <-
    function(x)
      strsplit(gsub("http://|https://|www\\.", "", x), "/")[[c(1, 1)]]
  bucket <-
    function(x)
      strsplit(gsub("http://|https://|www\\.", "", x), "/")[[c(1, 2)]]
  object_name <- function(x) {
    y <- gsub("http://|https://|www\\.", "", x)
    z <-
      stringr::str_r…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@riazarbi
Comment options

@riazarbi
Comment options

@wlandau
Comment options

@wlandau
Comment options

@riazarbi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by riazarbi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants