问题
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:
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.
来源:https://stackoverflow.com/questions/42069678/how-to-run-starcluster-with-aws-iam-role