terraform-aws-modules / terraform-aws-efs

Terraform module to create AWS EFS resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/efs/aws
Apache License 2.0
24 stars 41 forks source link

Utilize existing Security Group #19

Closed aparker-cityworks closed 9 months ago

aparker-cityworks commented 9 months ago

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.

bryantbiggs commented 9 months ago

Yes

aparker-cityworks commented 9 months ago

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"]
    }
  }
aparker-cityworks commented 9 months ago

Looks like that is the syntax. Thanks.

github-actions[bot] commented 8 months ago

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.