To generate these, you can log into your AWS dashboard, go to the IAM (Identity and Access Management) dashboard and select the
Userstab. On the
Userstab, add a user and also the administration rights that you want the user to have.Remember to restart R once you have filled in the access key information in the .Renviron file for it to take effect.
At this point, those familiar with
cloudyrsuite is probably asking – “This is exactly the same as
library(aws.ec2), so why use boto3?“. Well, to be honest, I was using
aws.ec2for a while, but I find spot-instances, which the current version of
aws.ec2does not support. In addition I found that
boto3has some other functionalitue – which I prefer. For a full list of
boto3functions to interact with an EC2 instance, have a look at the reference manual.
It’s pretty good stuff; check it out.