Terraform module which creates an AWS EFS filesystem, mount target and backup policy on AWS.
Terraform 0.12 and newer.
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]
}
Name | Version |
---|---|
terraform | >= 0.12.6 |
aws | >= 2.65 |
Name | Version |
---|---|
aws | >= 2.65 |
No modules.
Name | Type |
---|---|
aws_efs_backup_policy.this | resource |
aws_efs_file_system.this | resource |
aws_efs_mount_target.this | resource |
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({ |
[] |
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 |
No outputs.
Module managed by Marcel Emmert.
Apache 2 Licensed. See LICENSE for full details.