» 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

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 the Creation 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

The following attributes are exported:

» Import

The EFS file systems can be imported using the id, e.g.

$ terraform import aws_efs_file_system.foo fs-6fa144c6