CDK Construct for AWS Lambda in Golang
Project description
Amazon Lambda Golang Construct
This library provides constructs for Golang (Go 1.11 and 1.12 because of go modules) Lambda functions.
Golang Function
Define a GolangFunction
:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
lambda.GolangFunction(self, "my-handler")
By default, the construct will use the name of the defining file and the construct's id to look up the entry file:
.
├── stack.ts # defines a 'GolangFunction' with 'my-handler' as id
├── stack/my-handler/main.go
├── stack/my-handler/go.mod
├── stack/my-handler/go.sum
Configuring build
The GolangFunction
construct exposes some options via properties: buildCmd
, buildDir
, entry
and handler
, extraEnv
.
By default, your Golang code is compiled using go build -ldflags="-s -w"
command with GOOS=linux
env variable.
Project sponsored by Dynobase
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for rwilinski.aws-lambda-golang-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb51482169380e415fd86dadd18c471c711ab4aa868ab2bc8213f19529e31cd |
|
MD5 | 407e14a0883fad71fce0f4aeb59f21a6 |
|
BLAKE2b-256 | c193c90996209b3618fd223b9a768beebec84e514bffb792f1e6c81e29a55a80 |
Close
Hashes for rwilinski.aws_lambda_golang-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72d12f77a4223c8a88d4c915510bc5967dbf4052ff673a0bbc0b7abb293e8f9 |
|
MD5 | 36d97e463a2d90c3a1a32e20e61826d0 |
|
BLAKE2b-256 | b8aa02d367df0a8ec65950ad3a52a758e5a2de669701ef741c201cb6707374b5 |