terraform-aws-modules/terraform-aws-efs

Utilize existing Security Group

Closed this issue · 4 comments

Is it possible to utilize an existing security group for the mount targets rather than creating a new one?
If not, it would be nice if this were possible.

Yes

Thanks. Would the syntax look like this?

  mount_targets = {
    "eu-west-1a" = {
      subnet_id = "subnet-abcde012",
      security_groups = ["sg-abcde012"]
    }
    "eu-west-1b" = {
      subnet_id = "subnet-bcde012a",
      security_groups = ["sg-abcde012"]
    }
    "eu-west-1c" = {
      subnet_id = "subnet-fghi345a",
      security_groups = ["sg-abcde012"]
    }
  }

Looks like that is the syntax. Thanks.

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.