elasticmapreduce:StartSession

Write

elasticmapreduce:StartSession is a Write access-level action in the elasticmapreduce service. Grants permission to start a Spark Connect session on an Amazon EMR cluster

Resource types

ARNs that elasticmapreduce:StartSession can be scoped to in an IAM policy.

arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId} required
cluster

Condition keys

Keys you can use in the Condition block of a policy that grants elasticmapreduce:StartSession.

aws:RequestTag/${TagKey} String

Filters access by whether the tag and value pair is provided with the action

aws:TagKeys ArrayOfString

Filters access by whether the tag keys are provided with the action regardless of tag value

elasticmapreduce:ExecutionRoleArn ARN

Filters access by whether the execution role ARN is provided with the action

elasticmapreduce:RequestTag/${TagKey} String

Filters access by whether the tag and value pair is provided with the action

aws:ResourceTag/${TagKey} String

Filters access by the tag and value pair associated with an Amazon EMR resource

elasticmapreduce:ResourceTag/${TagKey} String

Filters access by the tag and value pair associated with an Amazon EMR resource

Example IAM policy

A minimal policy that allows elasticmapreduce:StartSession. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowElasticmapreduceStartSession",
      "Effect": "Allow",
      "Action": "elasticmapreduce:StartSession",
      "Resource": "*"
    }
  ]
}

Related actions in elasticmapreduce

View all elasticmapreduce actions →