This module creates AWS Elastic File System (EFS) with Security Group attached to it.
# 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
}
Name | Version |
---|---|
terraform | < 2.0.0, >= 1.6.6 |
aws | < 6.0, >= 5.22 |
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 |
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 |
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 |