aws_efs_file_system
Provides an Elastic File System (EFS) resource.
Example Usage
resource "aws_efs_file_system" "foo" { creation_token = "my-product" tags { Name = "MyProduct" } }
Argument Reference
NOTE: The
reference_name
attribute has been deprecated and might be removed in future releases, please usecreation_token
instead.
The following arguments are supported:
-
creation_token
- (Optional) A unique name (a maximum of 64 characters are allowed) used as reference when creating the Elastic File System to ensure idempotent file system creation. By default generated by Terraform. See Elastic File System user guide for more information. -
reference_name
- DEPRECATED (Optional) A reference name used when creating theCreation Token
which Amazon EFS uses to ensure idempotent file system creation. By default generated by Terraform. -
performance_mode
- (Optional) The file system performance mode. Can be either"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). -
tags
- (Optional) A mapping of tags to assign to the file system. -
encrypted
- (Optional) If true, the disk will be encrypted. -
kms_key_id
- (Optional) The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
id
- The ID that identifies the file system (e.g. fs-ccfc0d65). -
kms_key_id
- The ARN for the KMS encryption key. -
dns_name
- The DNS name for the filesystem per documented convention.
Import
The EFS file systems can be imported using the id
, e.g.
$ terraform import aws_efs_file_system.foo fs-6fa144c6
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/efs_file_system.html