Issue I have code copied directly from the go section of the lambda tutorial package main import ( "context" "encoding/json" "fmt" "log" "github.com/aws/aws-lambda-go/lambda" ) type MyEvent struct { Name string `json:"name"` Age int `json:"age"` } type MyResponse struct { Message
Continue readingTag: aws-lambda
Retrieve the SQS Queue URL dynamically from the lambda event or context
Issue I have a single lambda function which responds to two different SQS queues invoking it (the second one is a back-off queue) and so I want to dynamically determine which queue the message came from, so that I can
Continue readingOpenTelemetry Lambda Layer
Issue Is there any way to lessen the Lambda Layer dropped events? It keeps on dropping the traces before they reached the central collector. Before it exports the traces, it will then fetch the token to make an authorized sending
Continue readingHow do I add all resource arn's? Lambda Golang ListTags
Issue I am trying to list out all tags of my lambda functions, struggling a lot, please help me if anyone knows. func main() { svc := lambda.New(session.New()) input := &lambda.ListTagsInput{ Resource: aws.String("arn:aws:lambda:us-east-1:657907747545:function-function-name"), I’m expecting to list all tag arn’s
Continue readinglambda running twice, and Runtime exited without providing a reason
Issue I got a lambda written in Go running on a container, the image was built with alpine-golang and run with alpine. When testing i noticed from the logs the lambda is ran twice before exiting with the following: Error:
Continue readingPresigned S3 upload url expires before expiration time
Issue I have a lambda to generate pre-signed upload URL. Here is the code I use to get URL: urlExpiresAt := time.Duration(10) * time.Second s3Session := s3.New(awsSession) request, _ := s3Session.PutObjectRequest(&s3.PutObjectInput{ Bucket: aws.String(awssettings.FileStorageBucketName), Key: aws.String(fmt.Sprintf("%s/%s", *cognitoUser.Username, filename)), ContentType: aws.String(uploadContentType), })
Continue readingAWS Lambda cannot Scan DyanmoDB table even when granted Read & Write permissions
Issue My whole solution (infrastructure code and the actual lambda) are all open-source. Basically, I want a Go lambda that when called would query a dynamodb table and get all items. I know the Scan method is dangerous on DynamoDB
Continue readingAppsync with go lambda resolver error handling
Issue I am using AppSync > Lambda resolver (using golang) > Dynamodb I’ve looked everyone for more information on error handling with them. To start with, it appears as if AppSync doesn’t rely on status codes coming back from the
Continue readingLambda Function(Go) can't send email with SES SMTP
Issue Hello I’ve followed the instructions here to try and get my lambda function able to send email via SES SMTP https://docs.aws.amazon.com/ses/latest/dg/send-email-set-up-vpc-endpoints.html In my Lambda Function I use the net/smtp package and when I try to send the email it
Continue readingFailed to install Delve for the lambda container on Mac
Issue I used the VS Code AWS Toolkit and SAM to create a basic SAM web app based on Go(I VS Code generate it). It’s some generic template code for the Lambda that reads IP from request and returns a
Continue reading