https://github.com/anmolnagpal/terraform-aws-efs
https://github.com/anmolnagpal/terraform-aws-efs
aws devops efs module terraform terraform-module
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/anmolnagpal/terraform-aws-efs
- Owner: anmolnagpal
- License: mit
- Created: 2018-11-23T12:15:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T12:17:28.000Z (over 6 years ago)
- Last Synced: 2025-04-07T21:12:22.533Z (about 2 months ago)
- Topics: aws, devops, efs, module, terraform, terraform-module
- Language: HCL
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> Terraform module for simplified management of Shared Storage servers using Amazon EFS
## Usage
Include this repository as a module in your existing terraform code:
```hcl
module "efs" {
source = "git::https://github.com/anmolnagpal/terraform-aws-efs.git?ref=master"
managedby = "global"
name = "app"
env = "prod"
attributes = ["efs"]aws_region = "${var.aws_region}"
vpc_id = "${var.vpc_id}"
subnets = "${var.private_subnets}"
availability_zones = ["${var.availability_zones}"]
security_groups = ["${var.security_group_id}"]}
```## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| attributes | Additional attributes (e.g. `policy` or `role`) | list | `` | no |
| availability_zones | Availability Zone IDs | list | - | yes |
| aws_region | AWS region ID | string | - | yes |
| delimiter | Delimiter to be used between `name`, `namespace`, `stage`, etc. | string | `-` | no |
| name | Name (_e.g._ `app` or `wordpress`) | string | `app` | no |
| namespace | Namespace (_e.g._ `cp` or `anmolnagpal`) | string | `global` | no |
| security_groups | AWS security group IDs to allow to connect to the EFS | list | - | yes |
| stage | Stage (_e.g._ `prod`, `dev`, `staging`) | string | `default` | no |
| subnets | AWS subnet IDs | list | - | yes |
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`) | map | `` | no |
| vpc_id | AWS VPC ID | string | - | yes |## Outputs
| Name | Description |
|------|-------------|
| dns_name | DNS name |
| id | EFS id |
| mount_target_ids | List of IDs of the EFS mount targets (one per Availability Zone) |
| mount_target_ips | List of IPs of the EFS mount targets (one per Availability Zone) |- Refrence :
- https://aws.amazon.com/efs
- https://github.com/aws/efs-utils## 👬 Contribution
- Open pull request with improvements
- Discuss ideas in issues- Reach out with any feedback [](https://twitter.com/anmol_nagpal)