10 votes
Accepted

Is it possible to trigger an AWS Lambda function directly from CloudWatch alarm?

As far as I know, it is not possible. The the offcial AWS Lambda documentation says it support CloudWatch Events, but no mention of CloudWatch Alarms (and CW Events != CW Alarms) What you are ...
Alexandre's user avatar
  • 1,955
9 votes
Accepted

How do I upload my zipped lambda code into AWS Lambda?

It's kind of hidden away and not very intuitive. Within the AWS Lamba admin: Create Function > Author from Scratch. Within the Code entry type dropdown there is a Upload a .ZIP file option.
Chris Stryczynski's user avatar
8 votes
Accepted

Are there any best practices and/or tools for 'nohup' monitoring?

I'm not sure it's a best practice but what I would do is using filebeat to read the log in near real time and push it to ElasticSearch. AWS provides an ElasticSearch Service which can save you from ...
Tensibai's user avatar
  • 11.3k
7 votes
Accepted

How to storing encrypted secrets in code for a serverless.com project?

There are a couple of elements to consider here: It is valuable to have the capability to maintain configuration with a separate release cadence from the code that is being configured. Doing so ...
Richard Slater's user avatar
7 votes
Accepted

How to performance test AWS Lambda functions?

Dawny33 response is good, but I would start earlier in the development process. Keeping an eye on your cloud environment to make sure that your functions behaves as you expect (including your "...
Alexandre's user avatar
  • 1,955
5 votes

Placing an AWS Lambda in a public subnet

No, it's not possible to place an AWS Lambda in a public subnet and thus avoid paying for NAT. Lambda functions cannot have public IPs so they cannot route to the internet without a NAT (gateway or ...
jarmod's user avatar
  • 151
5 votes

How do I upload my zipped lambda code into AWS Lambda?

You can upload using aws-cli. aws configure aws lambda list-functions aws lambda update-function-code \ --function-name MyLambdaFunction \ --zip-file fileb://index.zip See https://...
Messa's user avatar
  • 200
5 votes
Accepted

LambdaA -> delay mins -> lambdaB

Use Step Functions. They allow you to coordinate lambda functions and have an inbuilt wait state
Robo's user avatar
  • 745
5 votes

How to performance test AWS Lambda functions?

Check out the IOpipe profiler to get full v8 profiler dumps from Lambda invocations. You can load those into Chrome Devtools to see exactly where CPU time is spent, and how memory is being used for ...
adjohn's user avatar
  • 51
5 votes

How to performance test AWS Lambda functions?

I might not be able to answer it completely, but here are my views from my limited experience with lambda: Speed-Performance: The duration of a single run of a lambda function will be present in the ...
Dawny33's user avatar
  • 2,826
4 votes
Accepted

DynamoDB vs RDS for a counter store?

Why not something like Redis? (can use it through ElastiCache). Hard to answer this without knowing the operational requirements of this project. Is this data strictly for logging/research, or is it ...
Assaf Lavie's user avatar
  • 1,241
4 votes

How do I launch Lambda in my own VPC?

I have also asked the AWS Support folks for help too, as Lambda's security was crucial for us [HIPAA compliancy]. This was their response: Lambda has two options, you can have your lambda ...
Dawny33's user avatar
  • 2,826
4 votes
Accepted

When is it not appropriate to use serverless technology such as AWS Lambda?

There is likely no general answer to this question, but some reasons to not consider Lambda (or other serverless platforms) include: App requires a language which is not available (C++, Haskell, ...
Dan1701's user avatar
  • 201
3 votes
Accepted

How to "inject" AWS Lambda code into a CloudFormation?

You've got a couple of options: 1. Embed the source code to the CloudFormation template I do just that in my ec2-start-stop demo. You'll see file ec2-start-stop.template.yml with these lines: ...
MLu's user avatar
  • 1,001
3 votes
Accepted

How can I deploy an AWS Lambda function from Jenkins?

I found the solution while trying to manually deploy the Lambda function as a jar file. These are the steps - Create your Lambda function as a Maven project using the AWS documentation. Create your ...
Anish Sana's user avatar
3 votes
Accepted

Undeploy or deactivate an AWS Lambda

you can change the trigger working process and rewrite and re schedule the process. Which the way you want. it will work. Hope it helps.
Dinesh Chowdary's user avatar
3 votes
Accepted

Amazon AWS - Amazon Connect IAM policies

There's a generator for policies in IAM (Into IAM -> Policies -> Create), choosing connect gives me the following policy: { "Version": "2012-10-17", "Statement": [ { "Sid":...
Tensibai's user avatar
  • 11.3k
3 votes
Accepted

Processing message queues quickly without wasting money on AWS Lambda

An SQS queue can now be wired directly to a Lambda function as an event source, so you don't have to start the Lambda function on a schedule. https://aws.amazon.com/blogs/aws/aws-lambda-adds-amazon-...
Michael - sqlbot's user avatar
3 votes
Accepted

How do I launch Lambda in my own VPC?

The API for creating a function includes a section to choose which VPC to use for running that function. source: https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-...
Evgeny Zislis's user avatar
3 votes

When is it not appropriate to use serverless technology such as AWS Lambda?

I wrote a bit about this on my LinkedIn post which was based on the article by Andrea Passwater. In brief, do not go serverless, if You want complete control of the infrastructure and latest system ...
KatariaA's user avatar
  • 273
3 votes

Terraform deletes AWS lambda layers instead of keeping the older versions

Terraform's job is to maintain one remote object per resource block, either by updating that same object over time or by replacing it with a new object that meets new requirements. If you wish to ...
Martin Atkins's user avatar
2 votes

DynamoDB vs RDS for a counter store?

For question #1) I think this could perhaps be better answered on SoftwareEngineering SE. Nonetheless, I'll risk an answer: for this kind of information (states) coming from that kind of ...
Alexandre's user avatar
  • 1,955
2 votes

LambdaA -> delay mins -> lambdaB

From your comment above: The main difficult is launch the second lambda with a delay from the first one and without doing a pooling constantly As using SQS queues are an option for you, you can ...
Dawny33's user avatar
  • 2,826
2 votes

Placing an AWS Lambda in a public subnet

Provided the Public Subnet where you're launching your Lambda is configured with Auto-assign public IPv4 address: Yes it should work in public a subnet without NAT. Whether or not it's a good idea is ...
MLu's user avatar
  • 1,001
2 votes
Accepted

How granular in purpose should FaaS functions be?

In my point of view, you can have a future gain separating the function into multiple parts because it will allow to use another combining system/upload/whatever as input to the processing part and ...
Tensibai's user avatar
  • 11.3k
2 votes
Accepted

Storing my Lambda Functions on GitHub

Your idea will work. The organization I work for maintains some open source examples how to do deploy to AWS using a pipeline. In comparison we use GitLab for the purpose. Instead of Travis we use ...
Niklas Rosencrantz's user avatar
2 votes
Accepted

Strategies to work around 30 sec timeout

A variation of method 2 is infinitely scalable: write the data to s3. from s3 trigger lambda to break s3 file into sqs queue events of good size from sqs queue trigger lambdas to insert sqs can be ...
jdog's user avatar
  • 650
2 votes

RDS IOPS utilizing fully

First try to review current caching parameter values. Then check list in AuroraMySQL.Reference.ParameterGroups And try to tune/increase caching parameters like query_cache_size Alternative solution ...
Arunas Bart's user avatar
2 votes

API Gateway - How Deploy API works?

1.) Create API (create-rest-api from the cli) simply creates the API Gateway resource, but it does not create the method, stage, authorizer, etc. for your API Gateway. Deploy API (create-deployment ...
Preston Martin's user avatar
  • 3,218
2 votes
Accepted

How do I create multiple versions of a lambda function in terraform

This is shown in the Hashicorp tutorial - "a new version of the lambda function. The suggestion there is to point to a different zipfile in S3. I suppose in your case, the filename either needs to ...
Bruce Becker's user avatar
  • 3,570

Only top scored, non community-wiki answers of a minimum length are eligible