Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 3.13 KB

README.md

File metadata and controls

62 lines (50 loc) · 3.13 KB

AWS EFS Module

This module creates AWS Elastic File System (EFS) with Security Group attached to it.

Example

# main.tf
module "efs_artefacts" {
  source = "git::https://github.com/lpavliuk/Terraform-Modules.git//aws_efs"

  name           = "${local.codename}-artefacts"
  vpc_id         = local.subnet_group_vpc_id
  subnet_ids     = local.subnet_group_subnet_ids
  is_encrypted   = true
  enable_backup  = false
  # replica_region = local.account_config.aws_secondary_region_name
}

Requirements

Name Version
terraform < 2.0.0, >= 1.6.6
aws < 6.0, >= 5.22

Inputs

Name Description Type Default Required
name EFS Name string n/a yes
vpc_id VPC ID where the EFS will be created in string n/a yes
subnet_ids Subnet IDs the EFS will be attached to list(string) n/a yes
is_encrypted Enables disk encryption bool true no
enable_backup Enables AWS EFS backup policy bool false no
replica_region Enables a replication to an additional region string "" no

Outputs

Name Description
id EFS ID
name EFS Name
dns_name EFS DNS Name
is_encrypted EFS Encryption Status
security_group_id EFS Security Group ID
replica_region Region of the replicated EFS
replica_id ID of the replicated EFS

Resources

Name Type
aws_efs_backup_policy.policy resource
aws_efs_file_system.this resource
aws_efs_mount_target.this resource
aws_efs_replication_configuration.replica resource
aws_security_group.this resource