Lambda Migrate to Graviton

Opportunity Name:

Lambda Function Graviton Migration with Runtime Upgrade

AWS Resource Type:

AWS Lambda

Opportunity Description:

This Finder identifies AWS Lambda functions running on x86 architectures that could benefit from migrating to Graviton2 processors. It also flags Lambda functions using deprecated or outdated runtimes and recommends upgrading to a newer runtime version compatible with Graviton2. By transitioning to Graviton2, users can achieve up to 20% cost savings while maintaining or improving performance.

The recommendations consider compatibility, runtime support, and cost-saving potential, ensuring a seamless migration path for Lambda functions.

Criteria for Identifying the Opportunity:

  1. Lambda Architecture Validation:
    • Only Lambda functions running on x86 (Intel/AMD) architectures are considered.
  2. Runtime Validation:
    • Identify deprecated runtimes and recommend a newer supported version:
      • Examples of deprecated runtimes include:
        • nodejs14.x (Deprecation: Dec 4, 2023)
        • python3.7 (Deprecation: Dec 4, 2023)
        • java8 (Deprecation: Jan 8, 2024)
  3. Function Analysis:
    • Validate compatibility with Graviton2 using:
      • Supported runtimes such as Python, Node.js, and Java.
      • AWS Lambda GetFunction API to analyze the function configuration and dependencies.
      • LLM-based analysis to detect x86-specific libraries or binaries.
  4. Cost Analysis:
    • Calculate potential cost savings based on 20% reduction of current amortized costs for Graviton-compatible functions.

Potential Savings:

Lambda functions migrated to Graviton2 architecture can achieve cost savings of up to 20%. Additional savings may result from upgrading to more efficient runtimes that improve execution performance.

What Happens When the Fixer is Executed?

The Fixer performs two sequential steps for eligible Lambda functions:

  1. Runtime Upgrade:
    • Update the runtime to the latest supported version compatible with Graviton2.
  2. Architecture Change:
    • Modify the architecture of the Lambda function to ARM64 (Graviton2).

The Fixer ensures the migration process is performed safely, minimizing any potential impact on function execution.

Is It Possible to Roll Back Once CloudFix Implements the Fixer?

Yes, rollback is possible. Users can revert the runtime and architecture settings to their original configurations through the AWS Management Console or CLI.

Can CloudFix Implement the Fix Automatically Once I Accept the Recommendation?

Yes, CloudFix automates the migration process, handling both runtime upgrades and architecture changes.

Does the Fix Require Downtime?

Minimal downtime may occur during the migration process, as the function configurations are updated and tested.

Additional Resources:

Comments

0 comments

Article is closed for comments.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request