create_s3_session: Create Amazon S3 session

View source: R/s3.R

create_s3_sessionR Documentation

Create Amazon S3 session

Description

Creates an Amazon Simple Storage Service session. (This is where DataCamp Data Connector data is hosted).

Usage

create_s3_session(
  access_key_id = get_env_var_aws_access_key(),
  secret_access_key = get_env_var_aws_secret(),
  region = get_env_var_aws_region()
)

Arguments

access_key_id

String containing the S3 access key.

secret_access_key

String containing the S3 secret access key.

region

String containing the S3 default region.

Note

Find the arguments to this function in the Admin Portal for your DataCamp group. See Reporting -> Export -> Data Connector -> View Configuration Details. It is recommended to store these values as environment variables.

See Also

s3

Examples

## Not run: 
Sys.setenv(
  AWS_ACCESS_KEY_ID = "your access key ID",
  AWS_SECRET_ACCESS_KEY = "your secret key",
  AWS_REGION = "your region"
)
s3_sess <- create_s3_session()
str(s3_sess, 1)

## End(Not run)

datacamp/dcdcr documentation built on Jan. 29, 2024, 2:47 p.m.