/terraform-aws-efs

Terraform module which creates Elastic File System resources on AWS

Primary LanguageHCLApache License 2.0Apache-2.0

AWS Elastic File System (EFS) Terraform Module

Terraform module which creates Elastic File System resources on AWS.

Available features:

  • Security Group - either created by the module
  • Elastic File System - either created by the module
  • Elastic File System Mount Target - either created by the module

Usage

module "efs" {
    source  = "Placidina/efs/aws"
    version = "~> 0.4.0"

    name = "example-efs"

    vpc_id                  = "vpc-000000000000"
    security_group_ids      = ["sg-0000000000", "sg-111111111111"]
    mount_target_subnet_ids = ["subnet-000000000", "subnet-11111111111", "subnet-2222222222"]

    tags = {
        Billing = "example"
    }
}

Requirements

Name Version
terraform >= 1.0.0

Providers

Name Version
local >= 2.1.0
aws >= 3.45.0

Modules

No modules.

Resources

Name Type
aws_security_group.this resource
aws_efs_file_system.this resource
aws_efs_mount_target.this resource

Inputs

Name Description Type Default Required
name The name to identify all resources string n/a yes
vpc_id The VPC ID to create security group for EFS string n/a yes
security_group_ids The list of security group ids to allow access EFS port list(string) n/a yes
file_system_encrypted The EFS disk will be encrypted bool false no
file_system_performance_mode The file system performance mode string "generalPurpose" no
file_system_creation_token A unique name used as reference when creating the Elastic File System to ensure idempotent file system creation string null no
mount_target_subnet_ids The list of subnet ids to mount target in list(string) n/a yes
tags Map of string for aditional tags to add in all resources map(string) {} no

Outputs

Name Description
name EFS name
file_system_arn Amazon Resource Name of the file system
file_system_id The ID that identifies the file system
mount_target_id The ID of the mount target
mount_target_dns_name The DNS name for the EFS file system

Authors

Module is maintained by Alan Placidina Maria.

License

Apache 2 Licensed. See LICENSE for full details.