How to run StarCluster with AWS IAM Role

184 Views Asked by At

How can I modify StarCluster config or code to include IAM Role?

So that when I do this:

starcluster start mycluster

The IAM Role can be automatically activated in EC2 instances (master and nodes). I did try to look around but of no avail info.

1

There are 1 best solutions below

0
On

Starcluster does not support this out the box. The automated solution would be to write a plugin (I couldn't find any) in python that uses the boto AWS library to add IAM roles to instances.

If automation isn't required, then the good news is that AWS announced this week the ability to change IAM roles of existing instances. You would have to use a similar workflow to automate the process.