resource "aws_efs_file_system" "shared-storage-pv" { encrypted = true creation_token = "${var.cluster-name}-shared-storage-pv" tags = { Name = "${var.cluster-name}-shared-storage-pv" } } resource "aws_efs_mount_target" "shared-storage-pv" { count = 3 file_system_id = aws_efs_file_system.shared-storage-pv.id subnet_id = aws_subnet.company.*.id[count.index] security_groups = [aws_security_group.company-cluster.id] } resource "aws_efs_file_system" "shared-fast-storage-pv" { encrypted = true creation_token = "${var.cluster-name}-shared-fast-storage-pv" tags = { Name = "${var.cluster-name}-shared-fast-storage-pv" } } resource "aws_efs_mount_target" "shared-fast-storage-pv" { count = 3 file_system_id = aws_efs_file_system.shared-fast-storage-pv.id subnet_id = aws_subnet.company.*.id[count.index] security_groups = [aws_security_group.company-cluster.id] } resource "aws_efs_file_system" "routing-cache-storage-pv" { encrypted = true creation_token = "${var.cluster-name}-routing-cache-storage-pv" tags = { Name = "${var.cluster-name}-routing-cache-storage-pv" } } resource "aws_efs_mount_target" "routing-cache-storage-pv" { count = 3 file_system_id = aws_efs_file_system.routing-cache-storage-pv.id subnet_id = aws_subnet.company.*.id[count.index] security_groups = [aws_security_group.company-cluster.id] } resource "aws_efs_file_system" "coredump-shared-storage-pv" { encrypted = true creation_token = "${var.cluster-name}-coredump-shared-storage-pv" tags = { Name = "${var.cluster-name}-coredump-shared-storage-pv" } } resource "aws_efs_mount_target" "coredump-shared-storage-pv" { count = 3 file_system_id = aws_efs_file_system.coredump-shared-storage-pv.id subnet_id = aws_subnet.company.*.id[count.index] security_groups = [aws_security_group.company-cluster.id] }