setup_datalake_access: Set up access to the data lake programatically.

View source: R/datalake.R

setup_datalake_accessR Documentation

Set up access to the data lake programatically.

Description

This function set ups the credentials required to access an AWS S3 bucket programatically. By default it connects to the Environmental Reporting Data Lake.

Usage

setup_datalake_access(cred_csv = "~/credentials.csv",
  bucket_name = mfe_datalake_bucket)

Arguments

cred_csv

A csv file with the credentials information. At a minimum it should have two columns: "Access key ID" and "Secret access key". By default setup_datalake_access looks for this file in the user directory "~/credentials.csv".

bucket_name

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

Examples

## Not run: 
setup_datalake_access(cred_csv = "~/credentials.csv", bucket_name = "mfedlkinput")

## End(Not run)

StatisticsNZ/er.helpers documentation built on Oct. 2, 2023, 7:24 a.m.