AI Cloud Architect

Streamline code migration using Amazon Nova Premier with an agentic workflow

AWSHow-to by Aditya Prakash, Jihye Seo and Yash ShahAWS Artificial Intelligence Blog

In this post, we demonstrate how Amazon Nova Premier with Amazon Bedrock can systematically migrate legacy C code to modern Java/Spring applications using an intelligent agentic workflow that breaks down complex conversions into specialized agent roles. The solution reduces migration time and costs while improving code quality through automated validation, security assessment, and iterative refinement processes that handle even large codebases exceeding token limitations.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Bedrock Converse API with Nova Premier runs a multi-agent workflow that converts legacy C code to Java/Spring, with validation, security review and iterative refinement.

Who it is for

Teams with legacy C systems on AWS who want to test LLM-driven code migration using Bedrock and Strands Agents.

Key points

  • AWS reports 93% structural completeness for files up to 300 lines, 81% for 300-700 lines and 62% for files over 700 lines, after multiple feedback cycles for the larger sizes.
  • Output for large files relies on a custom continuation method that prefills text when the model stops at max tokens.
  • Setup requires Bedrock access to Nova Premier, Python 3.10+, Strands Agents, and Java 11+ with Spring.

The same at other vendors