Resource: aws_emr_studio

Provides an Elastic MapReduce Studio.

Example Usage

resource "aws_emr_studio" "example" {
  auth_mode                   = "SSO"
  default_s3_location         = "s3://${aws_s3_bucket.test.bucket}/test"
  engine_security_group_id    = aws_security_group.test.id
  name                        = "example"
  service_role                = aws_iam_role.test.arn
  subnet_ids                  = [aws_subnet.test.id]
  user_role                   = aws_iam_role.test.arn
  vpc_id                      = aws_vpc.test.id
  workspace_security_group_id = aws_security_group.test.id
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import EMR studios using the id. For example:

import {
  to = aws_emr_studio.studio
  id = "es-123456ABCDEF"
}

Using terraform import, import EMR studios using the id. For example:

% terraform import aws_emr_studio.studio es-123456ABCDEF