Files
opentf/website/source/docs/providers/aws/r/emr_security_configuration.html.markdown
Clint 7c59f7e282 provider/aws: Add EMR Security Configuration Resource (#14080)
* provider/aws: Add EMR Security Configuration

* provider/aws: Document EMR security configuration

* small refactoring and add an import test
2017-04-28 16:28:49 -05:00

1.7 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_emr_security_configuraiton docs-aws-resource-emr-security-configuration Provides a resource to manage AWS EMR Security Configurations

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

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_configuraiton.sc example-sc-name