Creating an EMR machine from an EC2 computer with boto (with IAM role)

When I try to create an EMR machine with boto from an already created EC2 machine with a role (having almost all the permissions), it fails with the error "Access denied check jar: s3n: //us-east-1.elasticmapreduce/LIES/ script -runner / script -runner.jar ".

The question is, what basic steps should be followed to run a boto script with the IAM role from EC2 so that it can create an EMR machine?

Thank!

+4
source share
1 answer

Reply from the original poster @ user1010900:

Got a response:

"Currently, EMR cannot use the IAM role assigned to the EC2 instance that runs the EMR job."

Ref: https://forums.aws.amazon.com/thread.jspa?messageID=531826򁵲

AWS EMR AWS STS.

Ref:

http://docs.aws.amazon.com/STS/latest/UsingSTS/UsingTokens.html

0

Source: https://habr.com/ru/post/1535301/


All Articles