» Resource: aws_emr_security_configuration

Provides a resource to manage AWS EMR Security Configurations

» Example Usage

resource "aws_emr_security_configuration" "foo" {
  name = "emrsc_other"

  configuration = <<EOF
{
  "EncryptionConfiguration": {
    "AtRestEncryptionConfiguration": {
      "S3EncryptionConfiguration": {
        "EncryptionMode": "SSE-S3"
      },
      "LocalDiskEncryptionConfiguration": {
        "EncryptionKeyProviderType": "AwsKms",
        "AwsKmsKey": "arn:aws:kms:us-west-2:187416307283:alias/tf_emr_test_key"
      }
    },
    "EnableInTransitEncryption": false,
    "EnableAtRestEncryption": true
  }
}
EOF
}

» Argument Reference

The following arguments are supported:

  • name - (Optional) The name of the EMR Security Configuration. By default generated by Terraform.
  • name_prefix - (Optional) Creates a unique name beginning with the specified prefix. Conflicts with name.
  • configuration - (Required) A JSON formatted Security Configuration

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The ID of the EMR Security Configuration (Same as the name)
  • name - The Name of the EMR Security Configuration
  • configuration - The JSON formatted Security Configuration
  • creation_date - Date the Security Configuration was created

» Import

EMR Security Configurations can be imported using the name, e.g.

$ terraform import aws_emr_security_configuration.sc example-sc-name