EFS File System (encrypted, in-transit TLS)
An EFS file system with mount targets, a least-privilege NFS security group, lifecycle tiering, automatic backups, and a resource policy that enforces encryption in transit.
Verification
Live-testedReally deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.
Conformance
- Static validation (fmt · validate · tflint)
- Security scan clean (Checkov)
- Plan test superseded by live test
Provenance
- SHA-256 checksum
- Cosign signature
Functional
- Live-tested - applied, verified, destroyed
Last verified 2026-06-30 · how we verify
Verify this download
cosign · sha-256Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.
# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub
# 2. This module's Sigstore bundle
curl -o aws-efs-1.0.0.sigstore.json \
https://www.iac-bazaar.com/api/artifacts/aws-efs/signature
# 3. Verify the tarball you downloaded
cosign verify-blob \
--key cosign.pub \
--bundle aws-efs-1.0.0.sigstore.json \
aws-efs-1.0.0.tar.gz
# → Verified OK
# 4. (optional) confirm the checksum too
echo "bfbb9fe89123db597767ae82b286e692ff1604f2956502cae94f46ac36f69300 aws-efs-1.0.0.tar.gz" | sha256sum -cUse it from the registry
terraform · opentofumodule "efs" {
source = "www.iac-bazaar.com/iac-bazaar/aws-efs/aws"
version = "1.0.0"
}Needs a registry token from /account/tokens. The module itself is free; the account is what identifies you. Full setup: registry docs.
Cite it in your README
badge · attributionPaste this beside the module in the repository that uses it. The badge is rendered from this artifact's verification record, so it reads live-tested because the record says so, and the link lands on this page.
[](https://www.iac-bazaar.com/catalog/aws-efs?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)
Terraform module 1.0.0, live-tested on IaC Bazaar: [EFS File System (encrypted, in-transit TLS)](https://www.iac-bazaar.com/catalog/aws-efs?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)
```hcl
module "efs" {
source = "www.iac-bazaar.com/iac-bazaar/aws-efs/aws"
version = "1.0.0"
}
```Preview:
Inputs & outputs
Create a free account to read this module's contract
The declared contract - every input name, type, default and description, plus every output - is shown to signed-in accounts, not to anonymous visitors.
A free account sees the contract of every module in the catalogue. There is no subscription and nothing to buy - the modules are free to download, and they run under Vizier.
Documentation
aws-efs
Amazon EFS file system with mount targets, a least-privilege NFS security group,
storage-tiering lifecycle policies, automatic backups, and a resource policy that
enforces encryption in transit. Works with Terraform and OpenTofu (>= 1.6),
AWS provider >= 6.0, < 7.0.
Networking is self-contained: leave subnet_ids empty and the module discovers
the account's default VPC and places one mount target in each of its subnets
— ideal for a quick test box. For real deployments, pin your own private subnets.
Secure defaults:
- Encryption at rest always on (
encrypted = true): the AWS-managedaws/elasticfilesystemkey by default, or your own CMK viakms_key_id - Encryption in transit enforced: the file system policy denies any non-TLS
access (
aws:SecureTransport = false) and grants client access only topolicy_principal_arns(default: the current account root) - No public NFS: the mount-target security group allows port 2049 only from
allowed_cidrs/allowed_security_group_ids; with neither set it defaults to the VPC's own CIDR (in-VPC clients only). It defines no egress rule. - Automatic daily backups via AWS Backup (
enable_backup_policy = true) - Cost-aware lifecycle: files transition to Infrequent Access after 30 days
and back to Standard on first access;
burstingthroughput has no reserved charge
Requirements
- Terraform or OpenTofu
>= 1.6 hashicorp/aws>= 6.0, < 7.0
License
Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).
Usage code & full reference need an account
The complete copy-paste usage, the full input/output reference, and operational notes are free with an account - shown here and bundled in the download. Sign in and this section fills in.
- Usage
- Inputs
- Outputs
- Notes
Related modules
aws-datasync
preserve_deleted_files = REMOVE deletes files at the DESTINATION that are absent from the source, so an unmounted share or a renamed path empties the destination on schedule and the task reports success. PRESERVE here, with verification on, a bandwidth ceiling so it cannot take the whole Direct Connect, and a per-file report of what failed.
aws-s3-bucket
Private S3 bucket with encryption, versioning, public-access block, and TLS-only policy.
aws-backup
A vault, its plans and what they protect, with the service role that can restore as well as back up. Vault Lock is stated rather than defaulted: COMPLIANCE mode cannot be removed by anybody once its window elapses, which is the point and is irreversible.
aws-ebs-volume
Volumes that are always encrypted, optional attachment, and a DLM snapshot schedule in the same module - because a volume with no schedule is one copy of your data on hardware that can fail, and leaving snapshots to somebody else usually means nobody.
aws-fsx-lustre
A Lustre file system with the S3 link, root squash and compression set deliberately. SCRATCH deployments are not replicated - a lost file server loses the data - so this defaults to PERSISTENT_2 and refuses the combinations FSx accepts quietly.
aws-s3-tables
Amazon S3 Tables: a table bucket, its namespaces and Iceberg tables. Three maintenance jobs run by default and together they set how long history survives - snapshots expire at 120 hours, unreferenced objects are deleted permanently 13 days later, compaction targets 512 MB. This module makes each an input and returns the resulting window, and validates the numbers the provider does not.