{"modulePath":"github.com/thasami/backyard","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nCommand backyard-lambda runs the Backyard deploy gateway (SPEC §7) as an AWS Lambda function behind a function URL (or an API Gateway HTTP API).\n\nConfiguration is read like the server's (BACKYARD\\_CONFIG\\_YAML holds the YAML inline, or BACKYARD\\_CONFIG names a file bundled with the function). server.secret comes from the configuration or BACKYARD\\_SECRET, or, when BACKYARD\\_SECRET\\_ARN names an AWS Secrets Manager secret, from that secret at cold start (see secret.go; setting both is an error). Storage is normally S3, so uploads go straight to presigned S3 URLs and the 6 MB Lambda payload limit only applies to gateway responses: large JSON responses (the upload list of a deploy of thousands of files) are gzipped for clients that accept it, and a response that still does not fit (e.g. reading back a large binary file) is a 413 pointing to the server's embedded gateway (see deploy.LambdaHandler). BACKYARD\\_GATEWAY\\_URL (or deploy.gateway\\_url) sets the URL advertised to CLIs; when unset it is derived from each request's host.\n\nBuild:\n\n\tGOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags lambda.norpc -o bootstrap ./cmd/backyard-lambda\n\n","path":"github.com/thasami/backyard/cmd/backyard-lambda","name":"main","synopsis":"Command backyard-lambda runs the Backyard deploy gateway (SPEC §7) as an AWS Lambda function behind a function URL (or an API Gateway HTTP API).","isRedistributable":true}
