IAM roles not being set for workers
See original GitHub issueIt seems like the head node in an EC2 cluster gets assigned to a IAM role that lets it access all EC2 and S3 functionality, but the worker nodes do not. This prevents tasks that require direct S3 access from running on the worker nodes unless a .aws/credentials
, .boto
config, or other authentication method is synced up to the cluster.
It’s a small thing, but it would be nice to just rely on the IAM roles to take care of S3 access. One less configuration to worry about.
System information
- OS Platform and Distribution: Ubuntu 16.04 (EC2 Deep Learning AMI)
- Ray installed from: binary
- Ray version: 0.5.3
- Python version: 3.6
Steps to reproduce
ray up <my config.yaml> --num-workers 2
Observe that worker nodes are not assigned a IAM role in the EC2 dashboard.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Troubleshooting IAM roles - AWS Documentation - Amazon.com
There is no use case for a service role in the console · Open AWS services that work with IAM. · Check whether...
Read more >IAM basic and predefined roles reference - Google Cloud
This page lists all basic and predefined roles for Identity and Access Management (IAM). To learn more about IAM roles, see Roles and...
Read more >AWS IAM Roles - Everything You Need to Know & Examples
See our detailed AWS IAM Roles guide. Learn about why we need IAM, what are the different role types, and how to create...
Read more >Let's do DevOps: Assuming an IAM role from an EC2 instance
Policies: Policies are a list of permissions that can be granted. They are not allowed to be assigned to resources themselves (to my...
Read more >IAM: What happens when you assume a role? - tecRacer
The permissions aren't actually there which you can diagnose by taking a look at the policies the role has attached · You're not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@npyoung it would be great if you could try out this patch: https://github.com/ray-project/ray/pull/3118
as an aside, for future users.
using the default IAM role creation that ray uses doesn’t permit IAM role pass through. So you can’t just specify the correct Arn in the yaml config ( unless I seriously borked something ).
You also have to specify a permissions policy to permit it: