Aws communication between lambda functions [closed] - amazon-web-services

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 months ago.
Improve this question
What is the best approach when I want to have a two AWS lambdas talk to each other?
I want one lambda to be called by users in my cognito pool but the other lambda should only be called by my first lambda.
Should i utilise a message queue, or how can i properly call into my other lambda as a rest endpoint?

An AWS Lambda function can Invoke() another AWS Lambda function.
Please note that the two Lambda functions do not "communicate with" or "talk to" each other. Rather, one function calls the AWS Lambda service with the Invoke API call, asking it to run the other Lambda function. The result of the second Lambda function will then be returned as a response to the Invoke request.

Related

AWS Lambda with custom metrics [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 days ago.
Improve this question
What's the best way to track custom metrics from Lambda functions?
I have a GraphQL API running on AWS Lambda and would like metrics on which queries are being called, how much they're called, errors and successes rates, duration's, etc. Additional, I'd like to have the ability to add alerts for these metrics.
Is it possible to use Prometheus for this? Or is AWS CloudWatch more suitable?
I've looked into using Prometheus however it looks like it would require setting up a Pushgateway which it seems is discouraged. For most metrics and alerting I use Prometheus and Grafana because I've found them to be more ergonomic. I do use CloudWatch with custom dashboards and alerts for a variety of default metrics however I'd prefer to use Prometheus+Grafana if feasible.

Secret files on Lambda [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a secret file that I need to read from a Lambda function. However, I've read that it isn't the best practice to store secretive information within the Lambda code. I wanted to know if there were any similar solutions to AWS Secrets Manager, but for files.
You can upload the file in S3 and encrypt it using Key Management System (KMS). The key used to encrypt the file can either be Amazon Managed or a Custom Key (CMK). Give the lambda function with permissions to be able to use the key and read file from S3.
Here is the IAM role permissions:
https://aws.amazon.com/premiumsupport/knowledge-center/decrypt-kms-encrypted-objects-s3/
And here is a sample code you can refer to :
https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/s3-example-client-side-decrypt-item-with-kms-master-key.html

When and when not to use aws lambda functions [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a general understanding of serverless architecture.
I was wondering what are the top pro's and con's using this architecture compared to the previous generally used architectures.
Pros
Invoke Lambda Functions only during event triggering VS keeping Instance(s) idle for a reasonable amount of time.
Pay only for what you are going to use VS pay for the running idle instance.
Easily Integrate with other popular AWS Services e.g API Gateway, S3, SNS, CloudTrail, etc.
IAM Policies are configurable to each lambda function.
Scalable depending on the rate of invocations.
Cons
Only 15 minutes with finite RAM is supported as of now ,so not for heavy and complex processing.
Only popular programming language support.
Conclusion
It depends on your use-case as to whether use lambda or not !

How do I create real time ticker graph from AWS kinesis data stream? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
How can I create a real time graph ticker updating every 2-3 secs just like NASDAQ for data streams coming from my AWS Kinesis Firehose to AWS Kinesis Analytics? How do I get the output from Kinesis Analytics? Trying to achieve something close to this.
We did something similar. One possible solution for your use case:
Configure an Elasticsearch cluster.
Use a Kinesis to Elasticsearch connector. This will take care of automatically flowing your data from Kinesis to ES.
Use Kibana to visualize your ES data. It allows configuring the refresh interval and creating dashboards.
You might have to put some effort in setting up Elasticsearch. But it is all open-source, and so is Kibana.

What are the advantages to switch Amazon SES from the US to the EU? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I run a EU-based website on Amazon EC2, and currently send around 13,000 emails a day through Amazon SES. Much of the email throughput is during the early hours of the morning.
Now that Amazon SES has instances in Europe, are there any advantages to me switching from the current US-west SES servers into Europe? Does it make any difference in terms of deliverability or anything else?
The only benefit I can really see is one of slight speed increase; but email sending is done away from anything user-facing anyway.
The only advantage would be in terms pricing, only if you have the servers that are sending email in the same EC2 region as the SES region. In other words if both of them are in the same region, you wouldn't get charged any "OUT" data.
Otherwise you would get charged $0.02 /GB . If you look at the AWS EC2 pricing here: http://aws.amazon.com/ec2/pricing/ , it would be here:
Of course, if your clients are outside Amazon you would get charged "IN" and "OUT" data.