Rory  West

Rory West

1619244240

An overview of CloudWatch Metrics for AWS Lambda

Learn how to monitor CloudWatch Metrics for AWS Lambda Functions

In this article, I am going to discuss about AWS Lambda execution and monitoring using the CloudWatch metrics. AWS Lambda lets you run your applications on the cloud without having to provision any servers. All you need to do is write your code using your preferred programming language and deploy your code to AWS Lambda. You can then directly run your programs using the resources provided by AWS. At the time of writing this article, AWS Lambda supports programs written in Java, NodeJS, C#, PowerShell, Python, Ruby and Go.

#aws #aws-cloudwatch #aws-lambda #cloud-computing #cloudwatch

What is GEEK

Buddha Community

An overview of CloudWatch Metrics for AWS Lambda
Rory  West

Rory West

1619244240

An overview of CloudWatch Metrics for AWS Lambda

Learn how to monitor CloudWatch Metrics for AWS Lambda Functions

In this article, I am going to discuss about AWS Lambda execution and monitoring using the CloudWatch metrics. AWS Lambda lets you run your applications on the cloud without having to provision any servers. All you need to do is write your code using your preferred programming language and deploy your code to AWS Lambda. You can then directly run your programs using the resources provided by AWS. At the time of writing this article, AWS Lambda supports programs written in Java, NodeJS, C#, PowerShell, Python, Ruby and Go.

#aws #aws-cloudwatch #aws-lambda #cloud-computing #cloudwatch

Rory  West

Rory West

1623314700

How to stream AWS CloudWatch logs to LOGIQ

AWS CloudWatch is an observability and monitoring service that provides you with actionable insights to monitor your applications, stay on top of performance changes, and optimize resource utilization while providing a centralized view of operational health. AWS CloudWatch collects operational data of your AWS resources, applications, and services running on AWS and on-prem servers in the form of logs, metrics, and events. CloudWatch then uses this data to help detect and troubleshoot issues and errors in your environments, visualize logs and metrics, set up and take automated actions, and uncover insights that help keep your applications and deployments running smoothly.

AWS CloudWatch provides excellent observability for your applications and infrastructure hosted on AWS. But what about your applications and resources hosted on service providers? While you can stream their logs into CloudWatch using proxies and exporters, it isn’t that straightforward. You’d have to monitor them separately using a your service provider’s own monitoring tool or build something in-house using Prometheus or Grafana, maybe. Why train your eyes to watch multiple monitoring tools when you can centralize monitoring and observability across your on-premise servers and cloud providers with LOGIQ? LOGIQ plugs into numerous data sources to centralize your logs and visualize them in a single pane regardless of the service provider.

#cloudwatch #aws #lambda #logiq #aws cloudwatch

An Introduction to the AWS Scheduled Lambda Function

The topic of the scheduled launch of lambda functions is quite relevant for AWS serverless solutions. Nowadays, almost all projects use the same approach, and even though it works it is far from the optimal approach. In this article, we will consider alternatives and define which option will work best in practice.

For the purposes of illustration, let’s take a look at architectures of the following type:

  1. User
  2. API GW
  3. Lambda functions

There is a mobile application designed to book rooms in hotels. Also, the application functionality allows for keyless access to the room.

A back-end developer is expected to prepare the following:

  1. An API for creating and managing reservations.
  2. Checking the arrival of the client within 2 hours from the start of the reservation.
  3. Activation of the client’s key right at the start of the reservation.

The serverless solution means that the system has no initiator, and we need to somehow run the function to activate the key or cancel the reservation. Most often, CloudWatch rules are used for such tasks.

#aws #aws-lambda #amazon-web-services #lambda #cloudwatch

Cross-account access to invoke AWS lambda using AWS CDK

If you are here, you may have a pretty good knowledge of how to use AWS CDK for defining cloud infrastructure in code and provisioning it through AWS. So let’s get started on how to grant permission to your lambda function to access the resources in another AWS account.

Let’s say you have two accounts called Account A and Account B, and you need to give permission to lambda function in Account A (ex: 11111111)to access the resources in Account B(22222222). You can easily do this by assuming an IAM Role in Account B and then uses the returned credentials to invoke AWS resources in Account B.

#acces #account #aws #lambda #aws lambda #aws cdk

Cache secrets using AWS Lambda extensions

What is the AWS Lambda extension?

A month back AWS announced a preview of Lambda Extensions, a new way to easily integrate Lambda with your favorite monitoring, observability, security, and governance tools. Extensions can be published as Lambda layers, there are two types are extension:

  • Internal extensions → Run as part of the runtime process, in-process with your code. Internal extensions enable use cases such as automatically instrumenting code.
  • External extensions → Allow you to run separate processes from the runtime but still within the same execution environment as the Lambda function. External extensions can start before the runtime process and can continue after the runtime shuts down. These extensions run as companion processes to Lambda functions.

#aws #aws-secrets-manager #lambda #aws lambda