cloudyr/aws.ec2

Specify role with run_instances()?

Opened this issue · 0 comments

Is it possible to specify a role with run_instances()? If found this documentation for the CLI but I don't see a role_arn argument in the run_instances function. I tried the following:

vm <- aws.ec2::run_instances(image = "ami-c3a2e8a2",
                             type = "t3.medium",
                             sgroup = "sg-cd0b5faa",
                             query_extra = list(role_arn = 'arn:aws-us-gov:iam::570108756302:user/imartinez_s3'))

Error: UnknownParameter : 
 - The parameter role_arn is not recognized

Thanks for the help!