Write a CSV file as an object in an AWS S3 bucket.

write_csv_datalake(x, s3_path, bucket_name = mfe_datalake_bucket, ...)

Arguments

x

A data frame to write to the bucket using readr::write_excel_csv.

s3_path

The filename of the desired CSV in the S3 bucket including the full path

bucket_name

Name of the bucket to connect. By default, it uses the Ministry for the Environment data lake for environmental reporting "mfedlkinput".

...

Other arguments passed to the reading_function

Value

TRUE if it succeeded and FALSE if it failed

Examples

if (FALSE) { setup_datalake_access() csv_object_path <- "freshwater/2020/raw/urban_stream_water_quality_state.csv" write_csv_datalake(iris, csv_object_path) }