Questions tagged [aws-lambda-go]

21 questions
0
votes
0 answers

Returning pointer from an aws lambda

I was looking into a piece of code of creating a simple lambda function with go which returns a dummy value when invoked. package main import ( "github.com/aws/aws-lambda-go/lambda" ) type book struct { ISBN string `json:"isbn"` …
Naxi
  • 1,504
  • 5
  • 33
  • 72
0
votes
1 answer

Unable to find API Gateway Mapping Template for Golang

I have created a webhook for Twilio on AWS API Gateway, which is sending the request in application/x-www-form-urlencoded Content-Type. I am unable to write or find a mapping template for Golang. I am following this document - link for creating the…
0
votes
0 answers

My Lambda function is timing out when I try to ping a DB connection

It seems like a very simple thing but my connection times out every time. Here is the code in the Lambda function (written in Go) package main import ( "database/sql" "log" _ "github.com/go-sql-driver/mysql" //…
0
votes
1 answer

Distinguish between two instances of the same AWS lambda

I need to uniquely identify the message I'm sending from the lambda to some consumer. What unique information can I utilize to create the unique ID for each message I'm sending out? I can send few messages per request (lambda run) I can have few…
S2201
  • 1,339
  • 3
  • 18
  • 35
-1
votes
2 answers

Can we publish a message to SNS topic using a lambda function written in Go language?

I had a lambda function written in Golang. And I was trying to publish a message to SNS topic from lambda function before the lambda is executed . Is it possible to do so?
rsram312
  • 99
  • 2
  • 13
-4
votes
1 answer

json: invalid use of string struct tag

I'm trying to write simple POST serverless Go AWS lambda function. package main import ( "fmt" ) import ( "encoding/json" "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" ) // RequestBodyType is our…
Valor_
  • 3,461
  • 9
  • 60
  • 109
1
2