klothoplatform/klotho

Wrong subnets assigned for EFS Mount Targets

DavidSeptimus-Klotho opened this issue · 0 comments

When connecting an ECS Service to an EFS File System, the mount targets are associated with the wrong subnets.

const efs_mount_target_subnet_1_formbricks_uploads = new aws.efs.MountTarget("subnet-1-formbricks-uploads", {
    fileSystemId: formbricks_uploads.id,
    subnetId: subnet_3.id,
    securityGroups: [security_group_subnet_1_formbricks_uploads]?.map((sg) => sg.id),
})
const efs_mount_target_subnet_0_formbricks_uploads = new aws.efs.MountTarget("subnet-0-formbricks-uploads", {
    fileSystemId: formbricks_uploads.id,
    subnetId: subnet_2.id,
    securityGroups: [security_group_subnet_0_formbricks_uploads]?.map((sg) => sg.id),
})