Provides a resource to manage AWS EMR Security Configurations
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
}
This resource supports the following arguments:
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 ConfigurationThis resource exports the following attributes in addition to the arguments above:
id
- The ID of the EMR Security Configuration (Same as the name
)name
- The Name of the EMR Security Configurationconfiguration
- The JSON formatted Security Configurationcreation_date
- Date the Security Configuration was createdIn Terraform v1.5.0 and later, use an import
block to import EMR Security Configurations using the name
. For example:
import {
to = aws_emr_security_configuration.sc
id = "example-sc-name"
}
Using terraform import
, import EMR Security Configurations using the name
. For example:
% terraform import aws_emr_security_configuration.sc example-sc-name