9 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 ...
user avatar
  • 1,945
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.
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 ...
user avatar
  • 11.1k
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 ...
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 "...
user avatar
  • 1,945
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://...
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
user avatar
  • 735
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 ...
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 ...
user avatar
  • 2,766
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 ...
user avatar
  • 1,231
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 ...
user avatar
  • 2,766
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, ...
user avatar
  • 201
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.
user avatar
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 ...
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":...
user avatar
  • 11.1k
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-...
user avatar
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: ...
user avatar
  • 971
3 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 ...
user avatar
  • 131
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-...
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 ...
user avatar
  • 253
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 ...
user avatar
  • 1,945
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 ...
user avatar
  • 2,766
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 ...
user avatar
  • 971
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 ...
user avatar
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 ...
user avatar
  • 11.1k
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 ...
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 ...
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 ...
user avatar
  • 3,003
2 votes

How can I enable active tracing by default for an AWS Lambda function using Terraform?

This looks like it was added to Terraform back in May 2017, you enable it with the tracing_config block: tracing_config { mode = "Active" } You will also need to make sure that Terraform has a ...
user avatar
2 votes
Accepted

Unable to send cloudwatch logs to loggly using a blueprint lambda - Invalid ciphertext

Follow these steps to fix InvalidCiphertextException: Open the Lambda function in AWS console. Scroll down to the Environment Variables section & click Edit: Delete the value of ...
user avatar
  • 311

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