View a markdown version of this page

Build your modernized application with the Modernization Build Agent (preview) - AWS Transform

Build your modernized application with the Modernization Build Agent (preview)

Note

The modernization build agent is in preview release for AWS Transform for mainframe and is subject to change.

The modernization build agent builds your modernized application from the requirements that the assess and reimagine or standalone reimagine workflow generates. A build covers the business functions that you selected in the reimagine step, from a single business function to an entire application. Agents build the application in parallel and test every change against acceptance tests that are set from the requirements before any code is written. Each build delivers the code to your Amazon Simple Storage Service bucket with a coverage report that accounts for every requirement.

You can start and follow a build from the AWS Transform web application or from your coding agent. For more information, see Start a build.

Availability and pricing

The modernization build agent is available in preview to all AWS Transform for mainframe customers. You don't need to sign up or request access.

The modernization build agent is available in all AWS Regions where AWS Transform for mainframe is available. For more information, see Supported Regions for AWS Transform.

There is no additional charge for the modernization build agent.

In preview, a job can include up to 500,000 lines of input code for builds. For more information, see Quotas for AWS Transform.

Inputs to a build

A build uses the following inputs:

  • Approved requirements – The requirements that the assess and reimagine or standalone reimagine workflow generates for each business function, after your architects approve them. The approved requirements are the specification for the build. You don't create a separate specification. Your architects approve the requirements by reviewing them and the requirements coverage report before you start a build. AWS Transform doesn't have a separate approval step. For more information about how requirements are generated, written, and organized, see Generate requirements.

  • Knowledge graph – The knowledge graph that AWS Transform stores in the Amazon Neptune cluster in your account during the assess and reimagine or standalone reimagine workflow.

The modernization build agent supports the same source languages as the assess and reimagine and standalone reimagine workflows. For more information, see Supported languages for business rules extraction.

What you can build

A build covers the business functions that you selected in the reimagine step. You don't select business functions again when you start the build. A build can cover a single business function, several business functions, or an entire application. To get familiar with the build agent, we recommend that you start by reimagining and building one business function. For more information about selecting business functions, see Reimagine.

Before the build starts, the build agent recommends an architecture, a technology stack, and a breakdown into services. By default, the build agent breaks the application into services by using domain-driven design, and it offers a few alternative service breakdowns for your architects to choose from. Your architects accept or adjust the recommendation.

The modernization build agent generates Java code. More target languages are planned.

How a build works

A build turns your approved requirements into a modernized application. Agents do the work in parallel, and every change is checked against acceptance tests that are set from the requirements before any code is written.

Build steps

A build goes through the following steps:

  1. Recommend the architecture – The build agent recommends an architecture, a technology stack, and a breakdown into services, as described in What you can build. Your architects accept or adjust the recommendation before the build continues.

  2. Plan the work – The build agent splits the requirements into units of work and orders them by their dependencies.

  3. Build the units in parallel – Agents build the units at the same time. Each agent works in its own isolated copy of the codebase, so agents don't interfere with each other's work.

  4. Review each unit – An independent reviewer agent checks each unit against its requirements. If the work doesn't match the requirements, the reviewer sends it back for rework.

  5. Merge one change at a time – A merge queue adds the reviewed changes to the shared codebase one at a time.

  6. Run the conformance check – After every merge, a conformance check runs the acceptance tests against the merged codebase. If a test fails, the failure goes back to the agents to fix.

Steps 3 through 6 repeat until every unit is built, or until the remaining requirements are routed to your team as decisions.

Acceptance tests

The build agent generates acceptance tests from the requirements before it writes any code. Because each requirement is written to be testable, each requirement has its own acceptance tests.

The acceptance tests are fixed for the build. The agents that write the code can't change the acceptance tests to fit the code.

The acceptance tests are delivered with the code, so you can run them yourself.

When a build is complete

A build is complete when all of the following are true:

  • The codebase compiles.

  • The acceptance tests pass.

  • Every requirement in the scope of the build is accounted for. Each requirement is either implemented and tested, or routed to your team as a decision.

Where your team makes decisions

Your team makes decisions at the following points:

  1. Before the build: approve the requirements – Your architects review the requirements and the requirements coverage report. When they're satisfied, they approve the requirements, and you start the build. AWS Transform doesn't have a separate approval step. For more information, see Review the requirements coverage report.

  2. At the start of the build: set the direction – Your architects accept or adjust the recommended architecture, technology stack, and services.

  3. After the build: review the decisions – If a requirement can't pass its acceptance tests, or the agents propose that a requirement doesn't apply, the build doesn't implement it. Instead, the build marks the requirement in the coverage report as a decision for your team. Your team reviews these requirements and decides how to handle them. For more information, see Build results and the coverage report.

You can stop a build at any time. For more information, see Monitor and manage a build.

Where a build runs

  • The build runs in AWS Transform, fully managed by AWS. Each build runs on new, isolated compute.

  • Model calls go through Amazon Bedrock. For information about where inference requests are processed, see AWS Transform for mainframe cross-region inference.

  • The knowledge graph stays in the Amazon Neptune cluster in your account.

  • The code and the coverage report are delivered to your Amazon S3 bucket. They're protected by your bucket policies and encryption settings, including AWS Key Management Service (AWS KMS) customer managed keys if you configured them.

  • Actions are logged in AWS CloudTrail.

  • When you delete the job, AWS Transform deletes the build data.

For how security responsibilities are shared, see Shared responsibility for builds.

Outputs of a build

Each build delivers a .zip file to the Amazon S3 bucket that holds your input code, under transform-output/job-ID/build/. The .zip file contains the following:

  • Code – The source code of the modernized application. Code that implements a requirement carries a traceability annotation that names the requirement. The code includes tests, and each test carries an annotation that names the requirements it verifies.

  • Coverage report – A report that accounts for every requirement in the scope of the build. Each requirement is either implemented and tested, with links to its code, or routed to your team as a decision.

The build agent doesn't deploy the application. You deploy and operate the modernized application in your environment.

For more information, see Build results and the coverage report.

Shared responsibility for builds

Security and compliance are a shared responsibility between AWS and you. For more information, see the AWS shared responsibility model. The following lists describe how responsibility is shared when you use the modernization build agent.

AWS responsibilities

AWS is responsible for the following:

  • Protecting the infrastructure that runs builds, including the isolated compute for each build.

  • Protecting your data while a build runs.

Customer responsibilities

You are responsible for the following:

  • Managing user access to your workspace and jobs.

  • Securing the resources in your account that a build uses, including your Amazon S3 bucket, your Amazon Neptune cluster, and your AWS KMS keys.

  • Making sure that the source code you provide comes from trusted sources.

  • Reviewing and approving the requirements and the architecture before a build starts.

  • Reviewing the coverage report, including the requirements that the build routes to your team as decisions.

  • Reviewing, testing, and securing the generated code before you use it. This includes security reviews and functional testing.

  • Deploying and operating the modernized application.

  • Confirming that the modernized application behaves like your mainframe application before cutover, for example by running both in parallel and comparing results.

  • Meeting the regulatory and compliance requirements that apply to your organization and your application.

How the build fits with your other checks

Before you move a modernized application into production, you need to answer three questions. The following table shows how each question is answered.

When Question How it's answered
Before the build Do the requirements capture all the code? The requirements coverage report from the assess and reimagine or standalone reimagine workflow.
During the build Does the new code implement every requirement? The coverage report from the build, which extends the requirements coverage report to show each requirement implemented and tested.
Before cutover Does the new application behave like the mainframe application in production? Your parallel run. You run the new application alongside the mainframe application and compare the results.

Monitor and manage a build

A build runs unattended on AWS and can take hours or days, depending on its scope. You don't need to keep a session open while it runs. The build saves its progress as it goes, so it continues after an interruption.

You can check on a build from the AWS Transform web application or from any supported coding agent, regardless of where you started it.

  • Check the status of a build – In the web application, open the job. The worklog shows the progress of the build. In your coding agent, ask for the status, for example What's the status of my build? If you use the AWS Transform Kiro Power, it also generates a live monitoring dashboard that shows the progress of the build. The dashboard is an HTML file that you can open in Kiro's integrated browser or in any web browser.

  • Respond to the build – When the build needs your input, for example to accept the recommended architecture, it waits for you to respond. You can respond from the web application or from your coding agent.

  • Stop a build – You can stop a build at any time from the web application or your coding agent. To stop a build, you need the Administrator, Approver, or Contributor role in the workspace. When you stop a build, it doesn't deliver any outputs, and you can't resume it. To build again, start a new build.

  • Get the results – When the build is complete, it delivers the code and the coverage report to your Amazon S3 bucket. You can also ask your coding agent to download the results. For more information, see Build results and the coverage report.

Features not supported in preview

The following features aren't supported in preview:

  • Deploying the modernized application. You deploy the application.

  • Building into an existing modern codebase. Each build creates a new codebase.

  • Selecting individual requirements below the business function level.

  • Target languages other than Java.

  • Running the build in your own AWS account.

  • Providing your own architecture standards or existing code as input to a build. You can adjust the architecture that the build agent recommends.