sc4ttys
sc4ttys

Reputation: 89

How to edit lambda using the vscode aws extension (go)

I created a lambda using the web gui, using Go 1.x. Now I want to edit the code but I don't know how. I downloaded the vscode extension but it only displays the lambda, doesn't give me any options for editing.

What am I doing wrong? How can I edit the code, and ideally run it locally and debug it?

All the tutorials cover how to create a function locally and then deploy it, but for another use case, I need to do it the other way around - there's already a deployed lambda and I need to edit it and write tests for it.

I have aws-cli, sam and docker functional.

enter image description here

enter image description here

Upvotes: 2

Views: 2297

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 270224

From Working with AWS Lambda Functions - AWS Toolkit for VS Code:

The AWS Toolkit for Visual Studio Code provides support for AWS Lambda functions. Using the Toolkit for VS Code, you can author code for Lambda functions that are part of serverless applications. In addition, you can invoke Lambda functions either locally or on AWS.

So, looks like you can only edit Lambda components that are part of a SAM app.

Upvotes: 1

Related Questions