mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04:00
* provider/aws: Add EMR Security Configuration * provider/aws: Document EMR security configuration * small refactoring and add an import test
1.7 KiB
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 withname.configuration- (Required) A JSON formatted Security Configuration
Attributes Reference
The following attributes are exported:
id- The ID of the EMR Security Configuration (Same as thename)name- The Name of the EMR Security Configurationconfiguration- The JSON formatted Security Configurationcreation_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