惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
Last Week in AI
Last Week in AI
V
V2EX
博客园_首页
IT之家
IT之家
Jina AI
Jina AI
博客园 - 叶小钗
The Cloudflare Blog
T
Tailwind CSS Blog
腾讯CDC
B
Blog
D
Docker
L
LangChain Blog
博客园 - 司徒正美
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Identify deprecated Lambda functions with Datadog
2024-11-18 · via Datadog | The Monitor blog

AWS Lambda supports nearly any programming language by enabling developers to run serverless functions with either supported or custom runtimes. Once a runtime is deprecated, however, AWS will set dates for when you can no longer create or update functions using that runtime. You will then need to decide what course of action to take to ensure your Lambda functions continue running as expected.

In this post, we’ll weigh the various options you can pursue when a critical Lambda runtime is deprecated by AWS. We’ll also show you how Datadog can identify which Lambda functions are running outdated runtimes so that you can determine how to update them.

Maintaining Lambda functions after runtime deprecation

When AWS discontinues support for a specific runtime you rely on to build out your serverless application, you have three main options to keep your application running:

  • Package your Lambda functions as container images, allowing you to include any necessary runtimes and dependencies in containers
  • Migrate to a custom runtime that you maintain yourself
  • Rewrite all of your code in a language Lambda still supports

When AWS deprecated the go1.x runtime in December 2023, we at Datadog observed that customers chose to package function code as container images more often than expected. Because AWS was pushing customers to use custom runtimes, we expected to see custom runtimes account for most of the growth. Instead, we saw that there was a larger increase in container image packaged runtimes.

identifying-deprecated-lambda-functions-graph

Packaging function code as container images enables developers to avoid being tied to specific AWS-supported runtimes and allows easy portability across different environments and workloads. For example, if a customer has workloads across a multi-cloud environment, packaging Lambda code in a container image can simplify deployments by standardizing the release process across all platforms using containers.

This approach also involves less operational overhead compared to migrating to a custom runtime you maintain yourself or rewriting all of your code in a supported language. While refactoring and rewriting your code would add significant delays to your project timeline, maintaining a custom runtime requires continuously updating and developing security patches and bug fixes and ensuring compatibility with Lambda’s execution environment.

Though packaging functions as container images has its benefits, there are still tradeoffs to consider. For instance, while container images are convenient for bundling dependencies, they are more complex to inspect and maintain for vulnerabilities compared to a zip file package. If a security vulnerability like Log4j is discovered, you would need to scan the entire container image to identify and update the vulnerable dependency. With a zip file package or custom runtime, however, it’s simpler to inspect specific files.

Quickly identify Lambda functions using deprecated runtimes

Before you can make any decisions around deprecated Lambda functions, you first need to identify which functions are using deprecated runtimes. If you manage many Lambda functions, especially across different environments, it can be difficult to track which ones are using deprecated runtimes. You may also have older, forgotten functions that could still be running outdated runtime versions.

Datadog helps you overcome this challenge by detecting which functions are using deprecated runtimes and marking them with warnings within the Lambda view of the Serverless page.

identifying-deprecated-lambda-functions_01

You can click on a warning to get more contextual information such as the name of the deprecated runtime and the function’s associated service. And once you’ve identified deprecated Lambda functions, you can see whether an updated runtime is available, decide to use a custom runtime, or package your function as a container image.

Start identifying deprecated Lambda functions today

In this post, we looked at how organizations may approach handling Lambda functions running deprecated runtimes and discussed how, among our customers, most choose to package Lambda functions as container images rather than rewrite their code or maintain a custom runtime. We also looked at how you can use Datadog to warn you when Lambda functions are deprecated. To learn more about Datadog’s serverless warnings, check out our documentation.

If you don’t already have a Datadog account, you can sign up for a 14-day free trial to get started.