mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
two things here: 1. create addon for use in new modular terraform 2. create vuln processing terraform for legacy terraform, but by default its disabled
20 lines
No EOL
576 B
HCL
20 lines
No EOL
576 B
HCL
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
|
|
} |