The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [aws-lambda]

AWS Lambda is a compute service that lets you run code without the overhead of managing servers. (Not to be confused with the [lambda] tag, which instead refers to a type of function).

0
votes
0answers
25 views

How to keep PowerShell process open with input/output on runtime?

I'm researching these days on how to can I keep a powershell process alive so I can run PS code without opening a new process each time. The need: - Running multiple PS scripts dynamically, so they ...
0
votes
0answers
13 views

How can I Pass arguments from AWS Lambda to AWS Step Function?

I have a Lambda code written in Python 3.6 for record in event['Records']: filename_from_event = record['s3']['configurationId'] filename = record['s3']['object']['key'] ...
0
votes
0answers
23 views

Is there a way to configure AWS Lambda Function that it is invoked both on CloudWatch Event and on Api Gateway call

I'm deploying my Spring Boot to Aws Lambda and I want two things 1. Invoke some of my Controllers through Api Gateway. 2. Schedule Events so they invoke my other services inside Spring container. I ...
0
votes
1answer
28 views

AWS Lambda NodeJS, can't make external connection

So, I'm trying to do a basic thing: Connect to an external REST-API from my AWS Lambda script. This API hosts a list of holidays. But, whenever I try to execute the code it just times out (max lambda ...
0
votes
0answers
15 views

Application architecture with AWS Lambda

This is related to AWS Lambda implementation. I am working on some lambda function in .netcore. There are 14 different travel destinations which has different rules and regulations related to fare, ...
1
vote
1answer
38 views

Unable to move file from one folder to another in S3

I want to move the file inside the S3 folder to another folder which is in the same s3 Bucket. I tried the below code CopyObjectRequest copyObjRequest = new CopyObjectRequest(bucketName, ...
0
votes
0answers
11 views

How do I execute a shell script every time an EC2 instance launches or reboots? [duplicate]

I am trying to run shell command every time an instance reboots/restarts. I tried /rc.local, rc.d, init.d and from crontab. Noting works. So looking to see if there is a way from lambda or somewhere ...
1
vote
2answers
40 views

Subquery Exists - Returning single column

My query: SELECT EXISTS (SELECT votes FROM voted WHERE id = $1 AND user_id = $6), EXISTS (SELECT votes FROM voted WHERE id = $2 AND user_id = $6), EXISTS (SELECT votes FROM voted WHERE id = $...
2
votes
2answers
35 views

AWS Lambda: Variable value from one execution is preserved and used by subsequent run

I have a problem aws lambda python. I have a variable defined in a lambda layer and when we have multiple calls to that code , the variable value from one execution is preserved and used by ...
0
votes
0answers
9 views

Does Localstack support AWS Lambda layers

Does Localstack support AWS Lambda layers? Now, I can only see the S3 bucket created for this.
0
votes
1answer
23 views

API Gateway does not have permission to assume the provided role

I am trying to invoke a lambda function from an API Gateway. I have followed the next tutorial: https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-lambda....
0
votes
1answer
65 views

Lambda returning 200 even thought exception was thrown

I have the following code deployed in an AWS Lambda: public class MyTrigger implements RequestHandler<Request, Void> { private final Service service = new Service(); @Override ...
-1
votes
0answers
19 views

How to listen to AWS SNS from lambda using java

How to subscribe and listen to AWS SNS using lambda-java? Currently I can only publish to sns, but that won`t work if I need response from sns. Map<String, MessageAttributeValue> smsAttributes =...
0
votes
0answers
17 views

Is it possible to customize name of the log folder in S3 which is generated from AWS Lambda?

I have a lambda function setup in python which when run sends the logs to an S3 bucket. I am using the below tag in my handler to do so. OutputS3BucketName = 'name_of_bucket' The log folder ...
0
votes
0answers
8 views

Trigger a Lambda function when some other lambda's alias version change

I have a lambda function Hello_World which is deployed on a IoT Greengrass. Everytime I change the verison of Hello_World function and update the associated alias to point to new veriosn, I have to ...

15 30 50 per page