awslabs / amazon-emr-cli

A command-line interface for packaging, deploying, and running your EMR Serverless Spark jobs
Apache License 2.0
35 stars 12 forks source link

Add support for runtime roles for EMR steps #10

Closed dacort closed 1 year ago

dacort commented 1 year ago

EMR 6.7.0 and later now support runtime roles that allow you to provide a role to use with a specific Step.

We should update the run command to accept a --job-role for EMR on EC2 clusters similar to how we do for EMR Serverless.

chrisabbott commented 1 year ago

@dacort Does this still need to be implemented? Can I self-assign?

dacort commented 1 year ago

Not being worked on, feel free to contribute and open a PR! Thanks. 😃

chrisabbott commented 1 year ago

Not being worked on, feel free to contribute and open a PR! Thanks. 😃

No problem! Very low-hanging fruit. I tested a few EMR EC2 steps using roles with differently scoped policies, and everything appears to be functioning as expected. Let me know in the PR if you want me to add any additional tests or anything.