[autoscaler] Also grant roles to worker nodes

This commit is contained in:
Eric Liang
2018-10-24 13:57:36 -07:00
committed by GitHub
parent 7c1fd19fd9
commit 55d161b49f
2 changed files with 9 additions and 4 deletions
+1
View File
@@ -101,6 +101,7 @@ def _configure_iam_role(config):
logger.info("Role not specified for head node, using {}".format(
profile.arn))
config["head_node"]["IamInstanceProfile"] = {"Arn": profile.arn}
config["worker_nodes"]["IamInstanceProfile"] = {"Arn": profile.arn}
return config