awscc_efs_file_system (Resource)

The AWS::EFS::FileSystem resource creates a new, empty file system in EFSlong (EFS). You must create a mount target (AWS::EFS::MountTarget) to mount your EFS file system on an EC2 or other AWS cloud compute resource.

Example Usage

Basic Usage

To create a simple EFS File System

resource "awscc_efs_file_system" "this" {

  file_system_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

To create a EFS File System with lifecycle policies

resource "awscc_efs_file_system" "this" {
  lifecycle_policies = [{
    transition_to_ia = "AFTER_30_DAYS"
  }]

  file_system_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

Advanced Usage

To create a EFS File System with KMS based encryption

resource "awscc_efs_file_system" "this" {
  encrypted  = true
  kms_key_id = "arn:aws:kms:us-west-2:111122223333:key/b1d4919e-3296-4104-a3a8-c9f3b1138fa8"

  file_system_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

Schema

Optional

Read-Only

Nested Schema for backup_policy

Required:

Nested Schema for file_system_protection

Optional:

Nested Schema for file_system_tags

Required:

Nested Schema for lifecycle_policies

Optional:

Nested Schema for replication_configuration

Optional:

Nested Schema for replication_configuration.destinations

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_efs_file_system.example <resource ID>