efs

cloudposse/efs/aws

Terraform Module HCL AWS

Terraform Module to define an EFS Filesystem (aka NFS)

Install
module "efs" {
source = "cloudposse/efs/aws"
version = "1.5.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to provision an AWS EFS Network File System. NOTE: Release 0.32.0 contains breaking changes. To preserve the SG, follow the instructions in the 0.30.1 to 0.32.x+ migration path. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage Include this repository as a module in your existing terraform code: ``hcl module "efs" { source = "cloudposse/efs/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = "eg" stage = "test" name = "app" region = "us-west-1" vpc_id =

Inputs (50)
NameTypeDescriptionDefault
subnetslist(string)Subnet IDs required
vpc_idstringVPC ID required
regionstringAWS Region required
additional_security_group_ruleslist(any)A list of Security Group rule objects to add to the created security group, in a[]
performance_modestringThe file system performance mode. Can be either `generalPurpose` or `maxIO`"generalPurpose"
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
transition_to_ialist(string)Indicates how long it takes to transition files to the Infrequent Access (IA) st[]
efs_backup_policy_enabledboolIf `true`, it will turn on automatic backups.false
efs_file_system_policystringEFS policy to attach.""
bypass_policy_lockout_safety_checkboolA flag to indicate whether to bypass the `aws_efs_file_system_policy` lockout safalse
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
throughput_modestringThroughput mode for the file system. Defaults to bursting. Valid values: `bursti"bursting"
mount_target_ip_address_typestringIP address type for the mount target. Valid values are IPV4_ONLY (only IPv4 addr"IPV4_ONLY"
mount_target_ipv6_addressstringIPv6 address to use. Valid only when mount_target_ip_address_type is set to IPV6null
availability_zone_namestringAWS Availability Zone in which to create the file system. Used to create a file null
enabledboolSet to false to prevent the module from creating any resourcesnull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
security_group_delete_timeoutstringHow long to retry on `DependencyViolation` errors during security group deletion"15m"
mount_target_ip_addressstringThe address (within the address range of the specified subnet) at which the filenull
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
… and 10 more inputs
Outputs (14)
id — EFS ID
dns_name — EFS DNS name
mount_target_dns_names — List of EFS mount target DNS names
mount_target_ips — List of EFS mount target IPs (one per Availability Zone)
security_group_id — EFS Security Group ID
security_group_arn — EFS Security Group ARN
security_group_name — EFS Security Group name
access_point_arns — EFS AP ARNs
access_point_ids — EFS AP ids
host — Route53 DNS hostname for the EFS
mount_target_ids — List of EFS mount target IDs (one per Availability Zone)
mount_target_ipv6_addresses — List of EFS mount target IPv6 addresses (one per Availability Zone)
network_interface_ids — List of mount target network interface IDs
arn — EFS ARN
Resources (5)
aws_efs_access_pointaws_efs_backup_policyaws_efs_file_systemaws_efs_file_system_policyaws_efs_mount_target
Details
FrameworkTerraform Module
LanguageHCL
Version1.5.0
Cloud AWS
★ Stars94
Forks135
Total downloads3.1M
Inputs50
Outputs14
Resources5
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated