如何使用AWS IAM角色运行StarCluster [英] How to run StarCluster with AWS IAM Role
问题描述
如何修改 StarCluster 配置或代码以包含IAM角色?
How can I modify StarCluster config or code to include IAM Role?
所以当我这样做时:
starcluster start mycluster
可以在EC2实例(主节点和节点)中自动激活IAM角色. 我确实尝试
The IAM Role can be automatically activated in EC2 instances (master and nodes). I did try to look around but of no avail info.
推荐答案
Starcluster不支持此功能.自动化的解决方案是在python中编写一个插件(我找不到),该插件使用boto AWS库向实例添加IAM角色.
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.
这篇关于如何使用AWS IAM角色运行StarCluster的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!