This function set ups the credentials required to access an AWS S3 bucket programatically. By default it connects to the Environmental Reporting Data Lake.
setup_datalake_access( cred_csv = "~/credentials.csv", bucket_name = mfe_datalake_bucket )
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 |
---|---|
bucket_name | Name of the bucket to connect. By default, it uses the Ministry for the Environment data lake for environmental reporting "mfedlkinput". |
if (FALSE) { setup_datalake_access(cred_csv = "~/credentials.csv", bucket_name = "mfedlkinput") }