Provides an Elastic MapReduce Studio Session Mapping.
resource "aws_emr_studio_session_mapping" "example" {
studio_id = aws_emr_studio.example.id
identity_type = "USER"
identity_id = "example"
session_policy_arn = aws_iam_policy.example.arn
}
The following arguments are required:
identity_id
- (Optional) The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity Store.identity_name
- (Optional) The name of the user or group from the Amazon Web Services SSO Identity Store.identity_type
- (Required) Specifies whether the identity to map to the Amazon EMR Studio is a USER
or a GROUP
.session_policy_arn
- (Required) The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role.studio_id
- (Required) The ID of the Amazon EMR Studio to which the user or group will be mapped.This resource exports the following attributes in addition to the arguments above:
id
- The id of the Elastic MapReduce Studio Session Mapping.In Terraform v1.5.0 and later, use an import
block to import EMR studio session mappings using studio-id:identity-type:identity-id
. For example:
import {
to = aws_emr_studio_session_mapping.example
id = "es-xxxxx:USER:xxxxx-xxx-xxx"
}
Using terraform import
, import EMR studio session mappings using studio-id:identity-type:identity-id
. For example:
% terraform import aws_emr_studio_session_mapping.example es-xxxxx:USER:xxxxx-xxx-xxx