https://github.com/jameswoolfenden/terraform-aws-efs
Basic EFS module
https://github.com/jameswoolfenden/terraform-aws-efs
aws module terraform
Last synced: 2 months ago
JSON representation
Basic EFS module
- Host: GitHub
- URL: https://github.com/jameswoolfenden/terraform-aws-efs
- Owner: JamesWoolfenden
- License: apache-2.0
- Created: 2020-03-06T11:23:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T09:59:13.000Z (about 3 years ago)
- Last Synced: 2025-04-19T10:08:34.999Z (about 1 year ago)
- Topics: aws, module, terraform
- Language: HCL
- Homepage:
- Size: 85.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-aws-efs
[](https://github.com/JamesWoolfenden/terraform-aws-efs)
[](https://github.com/JamesWoolfenden/terraform-aws-efs/releases/latest)
[](https://github.com/JamesWoolfenden/terraform-aws-efs/releases/latest)

[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-aws-efs&benchmark=CIS+AWS+V1.2)
[](https://github.com/pre-commit/pre-commit)
[](https://www.checkov.io/)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-aws-efs&benchmark=INFRASTRUCTURE+SECURITY)
Terraform module -
---
It's 100% Open Source and licensed under the [APACHE2](LICENSE).
## Usage
This is just a basic example.
Include this repository as a module in your existing terraform code:
```hcl
module "efs" {
source = "JamesWoolfenden/efs/aws"
version = "0.0.4"
common_tags = var.common_tags
}
```
## Detailed Notes
## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_efs_access_point.pike](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_access_point) | resource |
| [aws_efs_file_system.sharedstore](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_file_system) | resource |
| [aws_efs_mount_target.mount](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_mount_target) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [common\_tags](#input\_common\_tags) | This is to help you add tags to your cloud objects | `map(any)` | n/a | yes |
| [efs](#input\_efs) | To create a shared file share |
object({
creation_token = string
transition_to_ia = string
kms_key_id = string
encrypted = bool
performance_mode = string
provisioned_throughput_in_mibps = number
throughput_mode = string
}) | n/a | yes |
| [mounts](#input\_mounts) | Subnets to create mount points for | `list(any)` | [
{
"ip_address": "",
"security_groups": [],
"subnet_id": ""
}
]
| no |
| [posix\_user](#input\_posix\_user) | n/a | object({
gid = number
uid = number
}) | {
"gid": -2,
"uid": -2
} | no |
| [root\_path](#input\_root\_path) | n/a | `string` | `"/data"` | no |
## Outputs
| Name | Description |
|------|-------------|
| [access\_point](#output\_access\_point) | n/a |
| [mount](#output\_mount) | n/a |
| [sharedstore](#output\_sharedstore) | n/a |
## Policy
This is the policy required to build this project:
The Terraform resource required is:
```golang
resource "aws_iam_policy" "terraform_pike" {
name_prefix = "terraform_pike"
path = "/"
description = "Pike Autogenerated policy from IAC"
policy = jsonencode({
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:DescribeAccountAttributes"
],
"Resource": [
"*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"elasticfilesystem:CreateAccessPoint",
"elasticfilesystem:CreateFileSystem",
"elasticfilesystem:DeleteAccessPoint",
"elasticfilesystem:DeleteFileSystem",
"elasticfilesystem:DescribeAccessPoints",
"elasticfilesystem:DescribeFileSystems",
"elasticfilesystem:DescribeLifecycleConfiguration",
"elasticfilesystem:DescribeMountTargets",
"elasticfilesystem:TagResource",
"elasticfilesystem:UntagResource"
],
"Resource": [
"*"
]
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"kms:CreateGrant",
"kms:Decrypt",
"kms:DescribeKey",
"kms:Encrypt",
"kms:GenerateDataKey*",
"kms:ReEncrypt*"
],
"Resource": [
"*"
]
}
]
})
}
```
## Related Projects
Check out these related projects.
- [terraform-aws-s3](https://github.com/jameswoolfenden/terraform-aws-s3) - S3 buckets
## Help
**Got a question?**
File a GitHub [issue](https://github.com/JamesWoolfenden/terraform-aws-efs/issues).
## Contributing
### Bug Reports & Feature Requests
Please use the [issue tracker](https://github.com/JamesWoolfenden/terraform-aws-efs/issues) to report any bugs or file feature requests.
## Copyrights
Copyright © 2019-2023 James Woolfenden
## License
[](https://opensource.org/licenses/Apache-2.0)
See [LICENSE](LICENSE) for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
### Contributors
[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]
[James Woolfenden][jameswoolfenden_homepage]
[jameswoolfenden_homepage]: https://github.com/jameswoolfenden
[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150