Registry /
aws / aws-cdk-aws-lambda-go-alpha
Install & Compatibility
Where this runs
tested against v2.252.0a0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 361.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 18.0s · import 0.000s · 362MB
399MB installed
● package 399MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
GoCode
✓ from aws_cdk.aws_lambda_go_alpha import GoCode
✗ from aws_cdk.aws_lambda_go_alpha import GoCode
Minimal CDK stack defining a Go Lambda function using GoCode with asset bundling.
import aws_cdk as cdk
from aws_cdk.aws_lambda import Function, Runtime, Code
from aws_cdk.aws_lambda_go_alpha import GoCode
class MyStack(cdk.Stack):
def __init__(self, scope, id, **kwargs):
super().__init__(scope, id, **kwargs)
# Bundles Go code from the specified directory
go_code = GoCode.from_asset(
path="./my-go-lambda",
cmd=["go", "build", "-o", "/asset/main"],
)
Function(
self, "GoFunction",
runtime=Runtime.PROVIDED_AL2, # Use custom runtime for Go
handler="main",
code=go_code,
)
app = cdk.App()
MyStack(app, "GoLambdaStack")
app.synth()
cdk --version
Upgrade
Version history
2.260.0a0latest on PyPI · released Jun 16, 2026
Audit
Dependencies
aws-cdk-librequiredCore CDK library required. Must match major version.
aws-cdk-aws-lambda-go-alphaoptionalConstructions for Python Lambda, not Go.