Skip to contents

Upload file to S3 Bucket

Usage

s3_upload(
  filepath,
  bucket,
  prefix = NULL,
  object = NULL,
  access_key,
  secret_key,
  ...
)

Arguments

filepath

Source file path

bucket

S3 backet name

prefix

S3 Prefix (folder structure). Default set to NULL

object

Destination S3 object name (with file extention)

access_key

S3 Access Key

secret_key

S3 Secret Key

...

Additional aws.S3::put_object() options

Value

boolean

Examples

if (FALSE) { # \dontrun{
filepath %>% s3_upload(bucket = "test-bkt")} # }