# NOT RUN {
# Note:
# - Require AWS Account to run below example.
library(RAthena)
library(DBI)
# Create Temporary Credentials duration 1 hour
get_session_token("YOUR_PROFILE_NAME",
serial_number='arn:aws:iam::123456789012:mfa/user',
token_code = "531602",
set_env = TRUE)
# Connect to Athena using temporary credentials
con <- dbConnect(athena())
# }
Run the code above in your browser using DataLab