Files
fleet-terraform/addons/vuln-processing/efs.tf
T
Robert Fairburn f378f62db2 Initial migration (#1)
This will be needed to make the initial tags. Once merged to main, I
will tag with the same module revisions as what exists in the Fleet
repo. We can then test the example module using the new settings.

Once validated, we'll then update the main fleet repo to redirect here
for /terraform and remove everything there. Anything referring to old
tags will still work in-place. Additionally any website references will
be updated as well to reflect these changes.
2025-02-04 10:07:51 -06:00

20 lines
576 B
Terraform

resource "aws_efs_file_system" "vuln" {}
resource "aws_security_group" "efs_security_group" {
name_prefix = "${var.customer_prefix}-efs-mount-sg"
vpc_id = var.vpc_id
// NFS
ingress {
from_port = 2049
to_port = 2049
protocol = "tcp"
security_groups = var.fleet_config.networking.security_groups # Allow traffic from the ECS task security group
}
}
resource "aws_efs_mount_target" "vuln" {
for_each = var.fleet_config.networking.subnets
file_system_id = aws_efs_file_system.vuln.id
subnet_id = each.value
}