How to run StarCluster with AWS IAM Role

折月煮酒 提交于 2019-12-12 10:55:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!