if (FALSE) {
# Note:
# - Require AWS Account to run below example.
library(RAthena)
library(DBI)
# Assuming demo ARN role
assume_role(profile_name = "YOUR_PROFILE_NAME",
role_arn = "arn:aws:sts::123456789012:assumed-role/role_name/role_session_name",
set_env = TRUE)
# Connect to Athena using ARN Role
con <- dbConnect(RAthena::athena())
}
Run the code above in your browser using DataLab