Skip to content

AccessPoint

Source: src/AWS/S3Files/AccessPoint.ts

An Amazon S3 File System Access Point — application-specific access to a FileSystem with POSIX user identity and root directory enforcement, for managing shared datasets in multi-tenant scenarios.

Basic Access Point

import * as AWS from "alchemy/AWS";
const accessPoint = yield* AWS.S3Files.AccessPoint("AppAccess", {
fileSystemId: fs.fileSystemId,
});

Access Point with POSIX Identity and Root Directory

const accessPoint = yield* AWS.S3Files.AccessPoint("AppAccess", {
fileSystemId: fs.fileSystemId,
posixUser: { uid: 1000, gid: 1000 },
rootDirectory: {
path: "/app",
creationPermissions: { ownerUid: 1000, ownerGid: 1000, permissions: "0755" },
},
});