Skip to main content

GitHub version npm version NuGet version PyPI version

Amazon Lambda Golang Construct

This library provides constructs for Golang (Go 1.11 and 1.12 because of go modules) Lambda functions.

Installing

In Typescript:

npm i aws-lambda-golang --save
# or using yarn
yarn add aws-lambda-golang

In .NET:

dotnet add package rwilinski.GolangFunction --version 0.1.0

In Python using Pip:

pip install rwilinski.aws-lambda-golang

In Java using Maven:

</code></pre>
<h3 id="user-content-usage">Usage<a href="#user-content-usage" aria-label="Link to heading 'Usage'" data-heading-content="Usage" class="anchor"></a></h3>
<p>In Typescript:</p>
<pre><code class="language-python"># Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_lambda_golang as golang

golang.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

Metadata

Release files for rwilinski.aws-lambda-golang 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rwilinski.aws-lambda-golang 0.1.1
File Size Uploaded Provenance Actions
rwilinski.aws-lambda-golang-0.1.1.tar.gz 22.4 kB Without provenance Details for rwilinski.aws-lambda-golang-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rwilinski.aws-lambda-golang 0.1.1
File Interpreter ABI Platform Actions
rwilinski.aws_lambda_golang-0.1.1-py3-none-any.whl Python 3 none any Details for rwilinski.aws_lambda_golang-0.1.1-py3-none-any.whl

Total release size: 43.8 kB

Release files / rwilinski.aws-lambda-golang-0.1.1.tar.gz

Download URL rwilinski.aws-lambda-golang-0.1.1.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
172f3ec3f437c054a93db7f8af447e26e409ccdc7e1a93fb5760d7068432e5e7
BLAKE2b-256 checksum
How to use checksums
59be41a3759d119388411834932f2867193fefc842de0ab5bb70807ce3dccfbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Release files / rwilinski.aws_lambda_golang-0.1.1-py3-none-any.whl

Download URL rwilinski.aws_lambda_golang-0.1.1-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da7df999a2f4d823ba906d4fcf58e605ee130d1032639a0e5be0582797fa90ab
BLAKE2b-256 checksum
How to use checksums
c3a0b88e396473a05d28b609fc36910daf25925d913426b453ec3614be3fd9cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Security for rwilinski.aws-lambda-golang 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page