Give Session Table Permissions

MarukiStack.ts
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export function MarukiStack({ stack }: StackContext) {
  const api = new Api(stack, "MarukiApi", {
    defaults: {
      function: {
        permissions: [marukiDataTable, sessionTable],
        environment: {
          tableName: dataTable.tableName,
          sessionTableName: sessionTable.tableName
        },
      },
  },
  
  const site = new ViteStaticSite(stack, "MarukiSite", {
    path: "frontend",
    environment: {
      tableName: dataTable.tableName,
      sessionTableName: sessionTable.tableName
    },
});
D
Image of Dylan Lacey
Dylan Lacey
@dylanlacey
powered byLogosnappify