This function configures the current R session to use an AWS profile that has been configured via AWS CLI v2.

setup_aws_access(profile_name, region = "ap-southeast-2")

Arguments

profile_name

AWS profile name from ~/.aws/config

region

AWS region

bucket_name

S3 bucket name

Details

Users must authenticate beforehand using:

aws sso login –profile <profile_name>

Examples

if (FALSE) { # \dontrun{
awslogin

setup_sso_access(
  profile_name = "my_profile"
)
} # }