Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshmenden/52651bc11dba8e77cedae1c86596fc32 to your computer and use it in GitHub Desktop.
Save joshmenden/52651bc11dba8e77cedae1c86596fc32 to your computer and use it in GitHub Desktop.
const golangLambda = new lambda.Function(this, 'golang-lambda-function-cdk-template-func', {
functionName: "GolangLambdaFunctionCDKTemplateFunc",
runtime: lambda.Runtime.GO_1_X,
timeout: cdk.Duration.seconds(15),
memorySize: 128,
handler: 'main',
code: lambda.Code.fromAsset(path.join(__dirname, '/../../golang-lambda-function-cdk-template.zip')),
environment: { REGION: cdk.Stack.of(this).region },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment