Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created May 6, 2024 09:38
Show Gist options
  • Save tsh-code/33abf906d637a9292997f479d031b808 to your computer and use it in GitHub Desktop.
Save tsh-code/33abf906d637a9292997f479d031b808 to your computer and use it in GitHub Desktop.
Single translation function stack.
import { StackContext, Function } from "sst/constructs";
export function Translations({ stack }: StackContext) {
const translationFn = new Function(stack, "TranslationLambda", {
runtime: "container",
handler: "packages/functions/src/translation",
memorySize: 6000,
diskSize: 1024,
timeout: "10 minutes",
});
return { translationFn };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment