R/utils.R

# input the profile in command line
aws_profile <- function(profile){

  if (profile == "default"){
    profile <- ""
  } else {
    profile <- paste("--profile", profile)
  }
  profile
}

# path for profile credentials or config
profile_path <- function(aws_file){
  home <- Sys.getenv("HOME")
  paste0(home, "/.aws/", aws_file)
}

Try the raws.profile package in your browser

Any scripts or data that you put into this service are public.

raws.profile documentation built on May 2, 2019, 8:16 a.m.