klothoplatform / klotho

Klotho - write AWS applications at lightning speed

Home Page:https://klo.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong subnets assigned for EFS Mount Targets

DavidSeptimus-Klotho opened this issue · 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),
})