5

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.

neversaint
  • 60,904
  • 137
  • 310
  • 477
  • The StarCluster documentation makes no reference to IAM Roles. [This person](http://star.mit.edu/cluster/mlarchives/2314.html) has made a modification that can do it, and there's [a discussion](https://github.com/jtriley/StarCluster/issues/508) about it. – John Rotenstein Feb 08 '17 at 06:36
  • @neversaint I think Starcluster does not support IAM role. Use scripting code for such an implementation. – Ashraf.Shk786 Feb 15 '17 at 11:33

1 Answers1

0

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.

Steve E.
  • 9,003
  • 6
  • 39
  • 57