This repository was archived by the owner on Feb 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ AWS Elastic File System module.
55This module creates:
66- An EFS filesystem
77- Mount points for each subnet specified
8- - Permissions to access the filesystem for the specified security group
8+ - Permissions to access the filesystem for the specified security groups
99
1010
1111## Usage
@@ -18,8 +18,8 @@ module "my_efs_module" {
1818 vpc_id = "${var.vpc_id}"
1919 subnets = ["${var.my_subnets}"]
2020
21- # Security group ID for ingress
22- efs_access_security_group_id = " ${var.security_group_id}"
21+ # Security group IDs for ingress
22+ efs_access_security_group_ids = [ ${var.security_group_ids}"]
2323}
2424```
2525
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ resource "aws_security_group" "efs_mnt" {
2020 from_port = 2049
2121 to_port = 2049
2222
23- security_groups = [
24- " ${ var . efs_access_security_group_id } " ,
25- ]
23+ security_groups = [" ${ var . efs_access_security_group_ids } " ]
2624 }
2725}
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ variable "vpc_id" {
1111 description = " ID of VPC to to create EFS mount in"
1212}
1313
14- variable "efs_access_security_group_id" {
15- description = " ID of the security group of the EC2 instaces that need to access the EFS"
14+ variable "efs_access_security_group_ids" {
15+ type = " list"
16+ description = " IDs of the security groups of the EC2 instances that need to access the EFS"
1617}
1718
1819variable "performance_mode" {
You can’t perform that action at this time.
0 commit comments