From d56e54322bbf0f9b0baf8357f9f2bd21af6a3cd1 Mon Sep 17 00:00:00 2001 From: Derek DeJonghe Date: Wed, 21 Mar 2018 21:03:22 -0400 Subject: [PATCH] Change `go get` path in go package build I believe the `go get github.com/aws/aws-lambda-go` snippet should be `go get github.com/aws/aws-lambda-go/lambda` --- doc_source/lambda-go-how-to-create-deployment-package.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/lambda-go-how-to-create-deployment-package.md b/doc_source/lambda-go-how-to-create-deployment-package.md index 1e64e928..772f71de 100644 --- a/doc_source/lambda-go-how-to-create-deployment-package.md +++ b/doc_source/lambda-go-how-to-create-deployment-package.md @@ -4,7 +4,7 @@ To create a Lambda function you first create a Lambda function deployment packag After you create a deployment package, you may either upload it directly or upload the \.zip file first to an Amazon S3 bucket in the same AWS region where you want to create the Lambda function, and then specify the bucket name and object key name when you create the Lambda function using the console or the AWS CLI\. - For Lambda functions written in Go, download the Lambda library for Go by navigating to the Go runtime directory and enter the following command: `go get github.com/aws/aws-lambda-go` + For Lambda functions written in Go, download the Lambda library for Go by navigating to the Go runtime directory and enter the following command: `go get github.com/aws/aws-lambda-go/lambda` Then use following command to build, package and deploy a Go Lambda function via the CLI\. Note that your *function\-name *must match the name of your *Lambda handler* name\. @@ -54,4 +54,4 @@ In Powershell, run the following: $env:GOOS = "linux" go build -o main main.go ~\Go\Bin\build-lambda-zip.exe -o main.zip main -``` \ No newline at end of file +```