Amazon EMR | Tagging your Cluster Flashcards

1
Q

How can I allow other IAM users to access my cluster?

Tagging your Cluster

Amazon EMR | Analytics

A

To create a new cluster that is visible to all IAM users within the EMR CLI: Add the –visible-to-all-users flag when you create the cluster. For example: elastic-mapreduce –create –visible-to-all-users. Within the Management Console, simply select “Visible to all IAM Users” on the Advanced Options pane of the Create cluster Wizard.

To make an existing cluster visible to all IAM users you must use the EMR CLI. Use –set-visible-to-all-users and specify the cluster identifier. For example: elastic-mapreduce –set-visible-to-all-users true –jobflow j-xxxxxxx. This can only be done by the creator of the cluster.

To learn more, see the Configuring User Permissions section of the EMR Developer Guide.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What Amazon EMR resources can I tag?

Tagging your Cluster

Amazon EMR | Analytics

A

You can add tags to an active Amazon EMR cluster. An Amazon EMR cluster consists of Amazon EC2 instances, and a tag added to an Amazon EMR cluster will be propagated to each active Amazon EC2 instance in that cluster. You cannot add, edit, or remove tags from terminated clusters or terminated Amazon EC2 instances which were part of an active cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Does Amazon EMR tagging support resource-based permissions with IAM Users?

Tagging your Cluster

Amazon EMR | Analytics

A

No, Amazon EMR does not support resource-based permissions by tag. However, it is important to note that propagated tags to Amazon EC2 instances behave as normal Amazon EC2 tags. Therefore, an IAM Policy for Amazon EC2 will act on tags propagated from Amazon EMR if they match conditions in that policy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many tags can I add to a resource?

Tagging your Cluster

Amazon EMR | Analytics

A

You can add up to ten tags on an Amazon EMR cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Do my Amazon EMR tags on a cluster show up on each Amazon EC2 instance in that cluster? If I remove a tag on my Amazon EMR cluster, will that tag automatically be removed from each associated EC2 instance?

Tagging your Cluster

Amazon EMR | Analytics

A

Yes, Amazon EMR propagates the tags added to a cluster to that cluster’s underlying EC2 instances. If you add a tag to an Amazon EMR cluster, it will also appear on the related Amazon EC2 instances. Likewise, if you remove a tag from an Amazon EMR cluster, it will also be removed from its associated Amazon EC2 instances. However, if you are using IAM policies for Amazon EC2 and plan to use Amazon EMR’s tagging functionality, you should make sure that permission to use the Amazon EC2 tagging APIs CreateTags and DeleteTags is granted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do I get my tags to show up in my billing statement to segment costs?

Tagging your Cluster

Amazon EMR | Analytics

A

Select the tags you would like to use in your AWS billing report here. Then, to see the cost of your combined resources, you can organize your billing information based on resources that have the same tag key values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do I tell which Amazon EC2 instances are part of an Amazon EMR cluster?

Tagging your Cluster

Amazon EMR | Analytics

A

An Amazon EC2 instance associated with an Amazon EMR cluster will have two system tags:

aws:elasticmapreduce:instance-group-role=CORE

Key = instance-group role ; Value = [CORE or TASK]

aws:elasticmapreduce:job-flow-id=j-12345678

Key = job-flow-id ; Value = [JobFlowID]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly