echomike80 / terraform-aws-efs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS EFS Terraform module

Terraform module which creates an AWS EFS filesystem, mount target and backup policy on AWS.

Terraform versions

Terraform 0.12 and newer.

Usage

module "efs" {
  source    = "/path/to/terraform-aws-efs"

  enabled   = var.enabled
  name      = var.name

  backup                    = var.backup
  encrypted                 = var.encrypted
  subnet_ids                = var.subnet_ids
  vpc_security_group_ids    = [var.security_group_id]
}

Requirements

Name Version
terraform >= 0.12.6
aws >= 2.65

Providers

Name Version
aws >= 2.65

Modules

No modules.

Resources

Name Type
aws_efs_backup_policy.this resource
aws_efs_file_system.this resource
aws_efs_mount_target.this resource

Inputs

Name Description Type Default Required
backup If true, the AWS EFS Backup will be enabled bool false no
creation_token Name to be used as specific creation token (see: https://docs.aws.amazon.com/efs/latest/ug/API_CreateFileSystem.html) string null no
enabled Enable or disable AWS EFS bool true no
encrypted If true, the AWS EFS will be encrypted bool false no
kms_key_id If set, use a specific KMS key for the AWS EFS string null no
lifecycle_policy Lifecycle Policy for the AWS EFS
list(object({
transition_to_ia = string
}))
[] no
name Name to be used on all resources as prefix string n/a yes
performance_mode AWS EFS performance mode. string null no
provisioned_throughput_in_mibps The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned. string null no
subnet_ids A list of VPC Subnet IDs to launch in list(string) [] no
tags A mapping of tags to assign to the resource map(string) {} no
throughput_mode Throughput mode for AWS EFS string null no
vpc_security_group_ids A list of security group IDs to associate with list(string) null no

Outputs

No outputs.

Authors

Module managed by Marcel Emmert.

License

Apache 2 Licensed. See LICENSE for full details.

About


Languages

Language:HCL 100.0%