Developer tools
Work with continuous modernization from your terminal or your IDE:
AWS Transform CLI – Script and automate continuous modernization with the
atx ctcommands, analyze local repositories, and provision the infrastructure in your account. See Install the CLI and CLI quick start.Kiro IDE – Install the AWS Transform Kiro Power
, open Kiro Chat, and ask the agent to help with continuous modernization. Claude Code, Codex, Cursor – Install the awslabs/agent-plugins
( plugins/aws-transformdirectory). The agent plugin provides the same capabilities as the Kiro Power.
With the Kiro Power or agent plugin, an agent sets up and runs continuous modernization for you through conversation: it connects sources, provisions infrastructure, runs and schedules analyses, triages findings, and remediates them. The agent skills are updated with each AWS Transform CLI release. For example, ask "Run my analysis on AWS with no infrastructure" or "Set up an EC2 instance for continuous modernization analysis".
For most setup and review work, use the web application. Everything that you create with the agent or the CLI also appears there. For the CLI commands for each task, see CLI tasks.
Install the CLI
The Kiro Power and agent plugin use the AWS Transform CLI, so install it for any of the developer tools. Before you install it, complete the Before you begin for continuous modernization. You also need the following:
Node.js 22 or later
AWS credentials, from
AWS_PROFILEor environment variables
To install the AWS Transform CLI, run the following command:
curl -fsSL https://transform-cli.awsstatic.com/install.sh | bash
You don't need to start a local server. The atx ct server command is
deprecated.
CLI quick start
The following steps connect a GitHub organization, analyze it, and
schedule the analysis to run weekly on AWS Transform-managed infrastructure. Replace the values in
italics with your own.
-
Add a source. This example connects with a personal access token (classic) that has the
repoandworkflowscopes. For other providers, and to connect with OAuth, see Connecting sources.atx ct source add --namemy-source--provider github --orgmy-org--tokentoken -
Discover the source's repositories:
atx ct discovery scan --sourcemy-source -
Run an analysis on AWS Transform-managed infrastructure, and follow it until it completes:
atx ct remote analysis --type tech-debt-comprehensive --mode aws-managed --sourcesmy-sourceatx ct analysis get --idanalysis-id--jsonTo run on your own machine instead, use
atx ct analysis run --type.type--sourcemy-source--wait -
Review the findings:
atx ct findings list --severity high --json -
Remediate findings. On your own machine, a remediation opens a pull request for each repository:
atx ct remediation create --idsid1,id2--name "remediation-name" -
Schedule the analysis to run every week:
atx ct schedule create --namemy-source-tech-debt--mode aws-managed --execution-rolerole-arn--recurrence weekly:MONDAY --type tech-debt-comprehensive --sourcesmy-sourceFor the execution role, see Execution role for AWS managed schedules.
Agent skills
The Kiro Power and agent plugin include skills that orchestrate continuous modernization workflows through conversational interaction:
| Skill | Description |
|---|---|
| Guide | Interactive onboarding that walks you through the full workflow step by step |
| Source | Add, list, and remove source connections |
| Discovery | Scan sources to discover repositories |
| Analysis | Run and manage analyses across all types |
| Findings | Query, filter, and manage analysis findings |
| Remediation | Create and manage remediations to fix findings |
| EC2 Execution | Provision and manage an Amazon EC2 instance for remote analysis |
| Batch Execution | Submit analysis jobs to AWS Batch with Fargate |
| Schedule | Set up recurring daily, weekly, or monthly analysis, on AWS Transform-managed infrastructure or on your own stack |
| Reporting | Generate self-contained HTML reports with charts showing findings, severity distribution, and remediation progress |
CLI tasks
The following sections give the AWS Transform CLI commands for the tasks in Working with continuous modernization. Anything that you create with the CLI also appears in the web application.
Connecting sources with the CLI
Use the atx ct source commands to connect sources. The provider sections
list the token for each provider.
GitHub organizations and tokens
Token: personal access token (classic) with the repo and
workflow scopes. Read-only for analysis, full repo for remediation.
atx ct source add --namename--provider github --orgorg--tokenpat
The --url flag is supported for self-hosted GitLab or Bitbucket
only.
GitLab groups, users, and tokens
Token: personal access token with api scope.
atx ct source add --namename--provider gitlab --orggroup-or-user--tokenpat# Self-hosted: atx ct source add --namename--provider gitlab --orggroup-or-user--tokenpat--url https://gitlab.example.com
Bitbucket workspaces, projects, and tokens
Bitbucket Cloud — scopes: read:repository:bitbucket,
write:repository:bitbucket, read:pullrequest:bitbucket,
write:pullrequest:bitbucket. Also needs --email and
--username.
atx ct source add --namename--provider bitbucket --orgworkspace--tokenapi-token--emailusername
Bitbucket Data Center:
atx ct source add --namename--provider bitbucket --orgproject-key--tokenhttp-access-token--url https://bitbucket.example.com
Local repositories (CLI only)
atx ct source add --namename--provider local --pathparent-directory
--path must point to a parent directory containing git repos as
subdirectories, not to a single repo.
Connecting with OAuth from the CLI
Instead of a personal access token, connect a GitHub or GitLab source with OAuth. You sign in through your browser with the AWS Transform app, and no token is requested or stored. AWS Transform clones and pushes through its own git endpoint, using a short-lived credential that AWS Transform mints for each request.
Connect an OAuth source with the CLI, or from the AWS Transform web application. For the web application steps, see Connect a source. Connecting an OAuth source from the CLI requires AWS Transform CLI version 3.25.0 or later.
Your own permissions to add and connect a source are the ones described in Setting up AWS Transform. Scheduled and remote analyses run under an execution role instead of your own identity, and that role needs permission to read a repository's content through the source, and to write it when a remediation opens a pull request. A role that predates OAuth support has neither, so a scheduled or remote run on an OAuth source fails to clone until the role's permissions are updated. For how to grant them, see Setting up AWS Transform.
The following AWS Transform CLI commands connect a source with OAuth in each of the supported
cases. Replace name, org, and
login with your own values:
# GitHub organization that already has the AWS Transform app installed atx ct source add --namename--provider github --auth oauth --orgorg# GitHub personal account that already has the app installed atx ct source add --namename--provider github --auth oauth --userlogin# GitHub, naming neither: opens the app's install page atx ct source add --namename--provider github --auth oauth # GitLab (gitlab.com only, and no organization or user to name) atx ct source add --namename--provider gitlab --auth oauth # Finish, or repeat, the connection for a source that already exists atx ct source connect --namename
atx ct source add --auth oauth creates the source and connects it in one
step. If the connection doesn't finish, AWS Transform still creates the source, with a disconnected
status, and atx ct source connect --name
completes it. Use the same command to reconnect a source at any time.name
The browser must run on the same machine as the CLI. The command opens the provider's
sign-in page and receives the result on a one-time listener on 127.0.0.1, so it
doesn't work over a terminal-only session unless you forward that port.
When you name neither --org nor --user, the command opens the
app's install page. The page always lists your personal account and every organization you
have access to. Each entry shows Configure when that account or
organization already has the app, and is empty when it doesn't.
If you don't complete a new installation, the connection has nothing to return, and
AWS Transform creates the source with a disconnected status. Connect it by naming the organization or
account:
atx ct source connect --name .name --org org
When a connection from the CLI succeeds, the browser confirms that you can close the tab and return to the terminal, and the CLI prints the connected account and the source's status.
A source belongs to one AWS account and one AWS Region. Connect the source in each AWS Region where you run continuous modernization.
If the AWS Transform app is uninstalled and installed again on the provider, run
atx ct source connect for each source that uses it. Installing the app again
replaces the installation the source recorded, and requests for that source fail until you
reconnect.
To stop AWS Transform reaching your repositories, remove the access at the provider as well as
removing the source. On GitHub, uninstall the AWS Transform app from the organization or account. On
GitLab, revoke the aws-transform-custom authorization in your account settings.
Then remove the source with
atx ct source remove --name ; see
Managing sources with the CLI. Revoking access
without removing the source leaves the source in place and its requests failing, in the same
way the note above describes.name
Use OAuth with gitlab.com, where it covers the projects your GitLab account is a member
of. For a self-managed GitLab host, use a personal access token with --url
instead.
Setting repository conventions with the CLI
To set repository conventions on a source, use the following options on atx ct
source add or atx ct source update. Pass an empty string to remove a
template or to clear the committer pair.
# Commit message format ({PLACEHOLDER} is replaced with a description of each change) atx ct source update --namename--commit-message-template "fix: {PLACEHOLDER}" # Branch namespace ({PLACEHOLDER} is replaced with the branch name AWS Transform generates) atx ct source update --namename--branch-name-template "customized/{PLACEHOLDER}" # Git committer identity (both options are required together) atx ct source update --namename--git-committer-name "ATX Automation" --git-committer-emailatx-automation@example.com
Managing sources with the CLI
atx ct source list atx ct source update --namename--tokennew-tokenatx ct source remove --namename
atx ct source update accepts any combination of --token and
the repository convention options above; passing no options is an error. You can update a
source from any machine, not just the host that ran
atx ct source add.
Discovering repositories with the CLI
With the AWS Transform CLI, run a discovery scan after you add a source, and again to pick up
repositories added since. For a local source, --path scans a different parent
directory and saves it on the source.
atx ct discovery scan --sourcenameatx ct discovery scan --sourcename--pathnew-directory
To list repositories, and to label them so that you can choose them by label later:
atx ct repository list atx ct repository list --sourcenameatx ct repository list --labels "team:frontend,priority:high" atx ct repository update --sourcename--repo "source::repo" --labels "team:frontend,priority:high" atx ct repository update --sourcename--labels "migration:wave-1"
Running analyses with the CLI
With the AWS Transform CLI, the --type option sets the analysis type. For the types and what each one
finds, see Analysis types. The CLI also
accepts tech-debt-quick for rapid-techdebt-analysis. A
custom analysis also needs --transformation-name.
atx ct analysis run --typetype--sourcename[--reposource::repo] [--wait] atx ct analysis get --idid--json atx ct analysis list --json atx ct analysis list --statuspending|running|complete|cancelled|failed--json atx ct analysis list --typetype--json atx ct analysis cancel --ididatx ct analysis delete --idid[--cascade-findings]
atx ct analysis run runs on your own machine. To run on AWS Transform-managed
infrastructure or on your own stack, use atx ct remote analysis (see Remote execution). If you omit
--repo, the command analyzes every repository under
--source. To scope the run to specific repositories, pass --repo
(comma-separated) — each a fully-qualified
source::repo, or a bare name used with
--source.
To label a run so it's easy to find later, pass
--display-name " on
name"atx ct analysis run or atx ct remote analysis. The name is shown in
atx ct analysis list and atx ct analysis get.
To run a custom analysis, add --type custom and the name of a transformation definition in the analysis category:
atx ct analysis run --type custom --transformation-namename--sourcesource--reposource::repo--wait
To pass configuration to the transformation definition, use -g with
key=value pairs, a JSON object, or the path to a file.
If the command fails because the transformation definition was not found, check the name
with atx custom def list. Transformation definitions are specific to an AWS
account and Region. If it fails because of the transformation definition's category, publish
it again with --category analysis.
Scheduling analyses with the CLI
With the AWS Transform CLI, use atx ct schedule. Its job options are the same as
atx ct remote analysis.
Schedules run remotely, in one of two ways:
AWS Transform-managed (
--mode aws-managed)—a server-side schedule that fires analyses on AWS Transform-managed infrastructure. There is no Amazon EventBridge schedule and nothing to provision. It requires an execution role (--execution-role) that AWS Transform assumes at each run (see Execution role for AWS managed schedules).Customer-managed (
--mode ec2|batch)—an Amazon EventBridge Scheduler schedule in your account dispatches each run to a persistent Amazon EC2 instance or AWS Batch stack that you provision first (see Remote execution).
The --recurrence value accepts daily,
weekly: (for example,
DAYweekly:MONDAY), or monthly: where
NN is a day from 1 to 28. A schedule that you create with the CLI
runs at about the time of day that you create it. In the web application, an AWS Transform-managed
schedule runs at the time of day that you create it, and a customer-owned schedule runs at the
hour that you choose.
# AWS Transform-managed schedule (no infrastructure; requires an execution role) atx ct schedule create --namename--mode aws-managed --execution-rolerole-arn--recurrencedaily--typetype--sourcesname[--reposrepo1,repo2] # Customer-managed schedule (EventBridge Scheduler dispatching to your EC2 or Batch stack) atx ct schedule create --namename--modeec2|batch--recurrenceweekly:MONDAY--typetype--sourcesname[--reposrepo1,repo2] # Manage schedules of either type by their schedule ID (from schedule list) atx ct schedule list atx ct schedule getschedule-idatx ct schedule disableschedule-idatx ct schedule enableschedule-idatx ct schedule deleteschedule-id
To schedule a custom analysis on AWS Transform-managed infrastructure, add
--type custom and --transformation-name. Every run of the schedule
uses that transformation definition. In the following command, replace
schedule-name, role-arn,
transformation-name, and source-name
with your own values:
atx ct schedule create --nameschedule-name--mode aws-managed --execution-rolerole-arn--recurrence daily --type custom --transformation-nametransformation-name--sourcessource-name
To view the analyses a schedule has run, use
atx ct analysis list --schedule-id , which
returns the schedule's fired runs, newest first.schedule-id
To remove the scheduler role and schedule group used by customer-managed schedules, run
atx ct schedule teardown --execute.
Managing findings with the CLI
With the AWS Transform CLI, list and filter findings with atx ct findings
list:
atx ct findings list --json atx ct findings list --reposource::repo--sourcename--severityhigh|medium|low--typeanalysis-type--statusopen|dismissed|obsolete|change_ready--analysis-idid--fix-transformtransform-name--json
atx ct findings update --idid--status dismissed --reason "reason" atx ct findings update --idid--status open atx ct findings batch-update --idsid1,id2--status dismissed --reason "reason" atx ct findings get --ididatx ct findings delete --idid
Creating remediations with the CLI
With the AWS Transform CLI, create a remediation in one of the following ways:
From findings – Each finding is fixed with its matched transformation (
--ids).From findings, with a transformation you choose – Every finding is fixed with the transformation that you name (
--idsand--transformation-name).From a transformation – A transformation runs on a repository without findings (
--transformation-nameand--repo).
With --transformation-name, use an AWS managed transformation or one of
your own transformation definitions in the remediation category (see Transformation definition categories).
atx ct remediation create --idsid1,id2--name "name" atx ct remediation create --idsid1,id2--transformation-nameTDatx ct remediation create --transformation-nameTD--reposource::repo
To run the AWS Transform job on your own machine, add --local. With
--transformation-name, pass configuration to the transformation, such as extra
instructions, with -g. To manage remediations, use the following commands:
atx ct remediation create --transformation-nameTD--reposource::repo-g "additionalPlanContext=Upgrade to Node.js 22" atx ct remediation list atx ct remediation status --ididatx ct remediation retry --ididatx ct remediation cancel --ididatx ct remediation delete --idid
Setting up the security agent with the CLI
Setup deploys an AWS CloudFormation stack that includes the following:
An Amazon S3 bucket for source code upload
An IAM role that
securityagent.amazonaws.comassumesA managed policy for that role
To run setup, your IAM user or role needs the following permissions:
cloudformation:CreateStack,cloudformation:UpdateStack,cloudformation:DescribeStacksiam:CreateRole,iam:PutRolePolicy,iam:AttachRolePolicy,iam:CreatePolicys3:CreateBucket,s3:PutBucketEncryption,s3:PutBucketPublicAccessBlock
After setup, attach the AWS managed policy
AWSTransformSecurityAgentExecutorAccess to run security analyses with least
privilege.
In the web application, deploy Security analysis infrastructure from the Settings tab instead. See Security analysis setup.
# Deploy the security agent infrastructure atx ct setup security-agent # Check its status atx ct setup security-agent --status # Delete it atx ct setup security-agent --delete
Remote execution
By default, analyses and remediations run on your local machine. For larger portfolios,
you can offload work to remote infrastructure. You can run on AWS Transform-managed infrastructure
with nothing to provision (analyses only), or on infrastructure you provision and manage in
your AWS account—a persistent Amazon EC2 instance or AWS Batch (Fargate) jobs. The
atx ct remote commands provision, run, monitor, and tear down customer-managed
infrastructure. Regardless of where execution happens, you create all resources in your
AWS account and your source code stays under your control.
With the atx ct remote analysis and remediation commands, you choose which
repositories to process using --sources and --repos (both
comma-separated). --sources selects every repository in the named sources.
--repos selects specific repositories, each written as
source::repo. If you provide both, the
command processes the union of the two sets: every repository in the named sources, plus the
named repositories. To scope a run to specific repositories, pass only
--repos.
Provisioning, updating, and tearing down infrastructure creates and modifies AWS CloudFormation
stacks and IAM roles, and requires administrator permissions. Pass --ack to
acknowledge this and skip the interactive prompt. Running analyses and remediations on
already-provisioned infrastructure uses least-privilege executor policies — see
Tagging and access control and Compute options for the managed policies
involved.
Running on AWS Transform-managed infrastructure (no provisioning)
To run an analysis remotely without provisioning anything, use
--mode aws-managed. The submission goes to AWS Transform, which runs the analysis on
AWS Transform-managed infrastructure. There is no stack to provision, no networking to configure, and
no credentials to store in AWS Secrets Manager. The submission is the run. Choose the
AWS Region the workload runs in with --region.
# Run an analysis on AWS Transform-managed infrastructure atx ct remote analysis --typetype--mode aws-managed --sourcesname[--reposrepo1,repo2] [--regionregion] # Poll the submission (there is no remote status command in this mode) atx ct analysis get --idid--json
This mode runs analyses only. In this mode, you can't run remediations or use local
sources. Because there is no stack, the --stack-name, --tags,
--existing-instance, and --batch-name options
don't apply. You can include up to 5,000 repositories in a single analysis submission. To cover larger scopes, split
them across multiple submissions with --repos. Unlike Amazon EC2 and Batch runs, you monitor
progress with atx ct analysis get rather than
atx ct remote status.
To run a custom analysis on AWS Transform-managed infrastructure, add --type custom
and the name of a transformation definition that you published with the
analysis category in the same AWS account and Region. For more information
about custom analyses, see Custom analysis. In the following command, replace
transformation-name and source-name
with your own values:
atx ct remote analysis --type custom --transformation-nametransformation-name--mode aws-managed --sourcessource-name
Networking
Remote compute must run in private subnets. Discover existing networking or create a new VPC before you provision:
# List VPCs, private subnets, and security groups in the current account and Region atx ct remote network discover atx ct remote network discover --vpcvpc-id--json # Create a new VPC with private subnets, a NAT gateway, and a security group atx ct remote network create --cidr10.1.0.0/16--ack
--cidr is optional and defaults to 10.1.0.0/16.
The network must meet the requirements in Networking and sizing. If you use network create, subnet size
scales with the VPC CIDR. The VPC must be /26 or larger, and the default
10.1.0.0/16 produces /24 subnets.
Sizing subnets and concurrency
Before you provision AWS Batch infrastructure for a large repository fleet, size your private subnets for the number of jobs that run in parallel. A subnet that is too small is the most common cause of failed jobs in a large run.
Each AWS Batch job runs as one Fargate task, which needs one elastic network interface and therefore one private IPv4 address. Public IP address assignment is disabled, so a private address is required — a job cannot start without one. AWS Batch does not queue a job it cannot place; it fails the job.
Free addresses do not add up across subnets. AWS Transform treats your available capacity as the
smallest number of free addresses in any one of the subnets
you pass to --subnets, not the total across them. Two /28 subnets
give you 11 concurrent jobs, not 22. Adding a subnet never raises capacity, and adding a
small subnet lowers it. Give every subnet in the stack enough free addresses on its
own.
Checking free addresses before you provision
Provisioning does not check subnet capacity for you. Check it yourself with
--json, which reports availableIpCount for each subnet. The default
table output does not include this value. Compare the smallest
count against the concurrency limit for the analysis type you plan to run.
atx ct remote network discover --vpcvpc-id--json
Concurrency limits for each analysis type
For the concurrency limit of each job type and the minimum dedicated subnet size, see Networking and sizing. Limits are shared across all users in the account and across both compute modes. To request a change, contact AWS Support.
Minimum subnet size
For the concurrency limit of each job type and the minimum dedicated subnet size, see Networking and sizing. Limits are shared across all users in the account and across both compute modes. To request a change, contact AWS Support.
Running large fleets
You can include up to 5,000 repositories in a single analysis submission. AWS Transform rejects
submissions that exceed the limit before starting any job. To cover larger fleets, split them with
--repos, and list the repositories in a source with
atx ct repository list --source .name --json
Splitting a fleet does not reduce the addresses you need. Submissions that run at the same time draw from the same subnets, up to the concurrency limit for the analysis type.
There is no option that limits how many repositories are scanned at once. The CLI submits every job in a submission, and AWS Transform releases jobs up to the concurrency limit for the analysis type and holds the rest. To pace a large fleet, size the subnets for that limit or submit in smaller groups.
The CLI bounds the number of simultaneous connections it opens to the analysis service.
On a very wide submission you may see socket usage at capacity on stderr — that
message is informational, not an error. If your shell's open-file limit is at or below the
bound, the CLI warns once at startup; raise the limit (for example
ulimit -n 4096) or lower the bound with the ATX_MAX_SOCKETS
environment variable.
Choosing Amazon EC2 for constrained networks
Amazon EC2 uses one private IP address in total, in the first subnet you pass, no matter how many workers the instance runs. If free addresses are scarce, Amazon EC2 avoids the problem entirely.
The tradeoff is concurrency: --workers accepts 1–5, so an Amazon EC2 instance runs
at most 5 repositories in parallel. For fleets that need more, use AWS Batch. For
security analysis the account limit is also 5, so AWS Batch offers no
additional concurrency for that type.
Size --workers, --instance-type, and --volume-size
when you provision. Instance memory must be at least 2 GB for each worker plus 4 GB for the
operating system. atx ct remote update keeps these values; changing them requires
tearing down and provisioning again, which replaces the instance and deletes its
volume.
Provisioning infrastructure
Deploy the Amazon EC2 or AWS Batch stack. Omit --execute to preview the
template or changeset; add --execute to apply.
Provisioning creates the compute stack for the mode you choose, plus dispatcher and scheduler stacks:
AWS Batch — a job queue and compute environment, a job definition with the continuous modernization container image, IAM roles for job execution, and a Lambda function for job submission. AWS Batch requires a security group.
Amazon EC2 — a persistent Amazon EC2 instance with an IAM instance profile and a security group. If you omit
--securityGroup, the stack creates a security group with no inbound rules; access is via SSM.Dispatcher — an
AtxDispatcherStackstack that queues jobs and dispatches them to your compute stack. It is always required. Provisioning creates it, andupdatereconciles it to the latest template. Pass--skip-dispatcheronupdateto skip that reconcile. The dispatcher is not removed. For information about howupdateaffects a custom image, see Container image.Scheduler — an
atx-schedulerstack (an Amazon EventBridge Scheduler schedule group and invocation role) used by recurring analyses. Pass--skip-schedulerto opt out.
By default, Amazon EC2 stacks are named atx-runner and AWS Batch stacks are
named AtxInfrastructureStack. To run more than one stack of the same mode, give
each a distinct name when you provision: use --stack-name (Amazon EC2 only; the
name must start with atx-runner) or --suffix to append a suffix to
all resource names. For update, detect, and remote analyses or
remediations, pass --stack-name to target a custom-named stack. If you omit it,
they use the default name (atx-runner for Amazon EC2, AtxInfrastructureStack
for AWS Batch). teardown always requires --stack-name. On Amazon EC2,
--workers sets the number
of parallel worker containers (1-5, default 5) and sizes the instance.
# Preview, then deploy an EC2 stack atx ct remote provision --mode ec2 --vpcvpc-id--subnetssubnet-a,subnet-batx ct remote provision --mode ec2 --vpcvpc-id--subnetssubnet-a,subnet-b--execute --ack # Deploy a Batch stack atx ct remote provision --mode batch --vpcvpc-id--subnetssubnet-a,subnet-b--securityGroupsg-id--execute --ack # Update to the latest template (--stack-name optional; defaults to the standard stack name) atx ct remote update --modeec2|batch[--stack-namestack-name] --execute --ack # Tear down (--stack-name required) atx ct remote teardown --modeec2|batch--stack-namestack-name--execute --ack
Local (default in the CLI)
By default, atx ct analysis run and atx ct remediation
create run on the machine where you run the AWS Transform CLI, with your own AWS
credentials. There's nothing to deploy. Local runs are the only way to analyze a local source,
and they're limited by your machine's resources. Local runs can't be scheduled.
AWS Transform-managed (no infrastructure to provision)
On AWS Transform-managed infrastructure, you submit an analysis to AWS Transform, and AWS Transform runs it on infrastructure that AWS operates. There's no stack, VPC, or subnet to set up, and nothing to tear down.
AWS Transform-managed infrastructure has the following requirements and limits:
It runs analyses only. To remediate, use an AWS Batch or Amazon EC2 stack.
It doesn't run
securityanalyses, which run on AWS Security Agent in your account.The source must be on GitHub, GitLab, or Bitbucket. It can't reach local sources.
A schedule needs an execution role that AWS Transform assumes for each run. The web application can create the role for you. See Execution role for AWS managed schedules.
To run on AWS Transform-managed infrastructure, choose AWS managed in the
web application, or use --mode aws-managed with the AWS Transform CLI. See Running on AWS Transform-managed infrastructure (no provisioning).
AWS Batch (Fargate) (recommended)
On AWS Batch, each repository's analysis, and each remediation, runs as an isolated Fargate job in its own container. There are no servers to manage, and jobs run in parallel up to the concurrency limit for the analysis type.
Provisioning deploys the following in your AWS account:
An AWS Batch job queue and compute environment
A job definition with the continuous modernization container image
IAM roles for job execution
A Lambda function for job submission
Provisioning requires administrator permissions. To run analyses and remediations on a
stack that's already deployed, with least privilege, attach the AWS managed policy
AWSTransformInfrastructureExecutorAccessBatch.
To deploy the stack, use the AWS CloudFormation quick-create links on the
Settings tab of the web application (see Deploying stacks from the Settings tab), or atx ct remote provision
--mode batch (see Provisioning infrastructure). With the agent skills, ask "Set up Batch
execution for continuous modernization".
Amazon EC2
On Amazon EC2, analyses and remediations run in up to 5 worker containers on a persistent instance in your AWS account. The instance keeps running between runs, and uses one private IP address in total.
Provisioning deploys an AWS CloudFormation stack that includes the following:
An Amazon EC2 instance (Amazon Linux 2023) with Docker and the continuous modernization container
An IAM role with permissions for AWS Transform, Amazon S3, AWS KMS, Secrets Manager, and AWS Security Agent
AmazonSSMManagedInstanceCore, so that you reach the instance through SSM, with no SSH key pair or inbound portsA security group with no inbound rules
Provisioning requires administrator permissions. To run analyses and remediations on a
stack that's already deployed, with least privilege, attach the AWS managed policy
AWSTransformInfrastructureExecutorAccessEC2.
To deploy the stack, use the AWS CloudFormation quick-create links on the
Settings tab of the web application, or atx ct remote provision
--mode ec2. With the agent skills, ask "Set up an EC2 instance for continuous
modernization analysis".
Container image
When you run remote analyses and remediations, they execute inside a container image. By
default, when you provision a remote environment, it uses the public AWS Transform image,
public.ecr.aws/d9h8z6l7/aws-transform:latest. AWS Batch sets it as the job
definition image. Amazon EC2 uses it as the runner image.
To run a different image—for example, a private Amazon ECR image that bundles additional
languages or tools—pass --image-uri when you provision:
# Batch: provision with a custom image atx ct remote provision --mode batch --vpcvpc-id--subnetssubnet-a,subnet-b--securityGroupsg-id--image-uriaccount-id.dkr.ecr.region.amazonaws.com/repo:tag--execute --ack # EC2: provision with a custom image atx ct remote provision --mode ec2 --vpcvpc-id--subnetssubnet-a,subnet-b--image-uriaccount-id.dkr.ecr.region.amazonaws.com/repo:tag--execute --ack
A later atx ct remote update (see
Provisioning infrastructure) resets the image
to the template default. To keep a custom image, re-run provision with
--image-uri after you update.
Storing source credentials
Remote runs on AWS Batch, Amazon EC2, and AWS Transform-managed infrastructure clone your
repositories with the source's token, stored in AWS Secrets Manager under the
atx/ prefix. atx ct source add and atx ct source update
--token store the token for you. If storing it fails, the command says so. To store,
replace, or remove a token yourself, use the following commands. OAuth sources don't store a
token.
atx ct remote credentials --sourcename--tokentokenatx ct remote credentials --sourcename--remove
Running remotely
Remote analysis runs one container for each repository; remote remediation runs one
container for each finding. Use --sources, --repos, and
--labels to control fan-out, and --stack-name or --tags
to select which provisioned stack to use.
# Run analysis across a source on Batch atx ct remote analysis --typetype--mode batch --sourcesname[--reposrepo1,repo2] [--labels "team:frontend"] # Run remediation for specific findings on EC2 atx ct remote remediation --mode ec2 --idsid1,id2atx ct remote remediation --mode ec2 --sourcesname--min-severity high
Monitoring and managing runs
# Check whether infrastructure is deployed atx ct remote detect --modeec2|batch# Track a submission (Batch by batch ID, EC2 by group ID) atx ct remote status --batchbatch-id--stack-namenameatx ct remote status --groupec2-group-id--wait # Resume a partially-failed Batch run (re-submits only incomplete repos). # On resume, --batch-name takes the existing batch ID reported by "remote status --batch". atx ct remote analysis --typetype--mode batch --sourcesname--resume-incomplete --batch-namebatch-id# Cancel a running submission atx ct remote cancel --mode batch --batchbatch-id--stack-namenameatx ct remote cancel --mode ec2 --groupec2-group-id
Tagging and access control
You can apply tags (comma-separated key=value pairs) to sources, analyses,
and remediations with the --tags option. Tags are also supported on remote
infrastructure, stored credentials, and networking resources. With tags, you can organize
resources. Combined with IAM tag conditions, tags implement attribute-based access control
(ABAC) so that teams access only the resources that carry their tags.
atx ct source add --namename--provider github --orgorg--tokenpat--tagsteam=platform,env=prodatx ct analysis run --typetype--sourcename--tagsteam=platformatx ct remediation create --idsid1,id2--tagsteam=platform
By default, resources are tagged with the tags you define in
~/.aws/atx/settings.json. Add the tags you want applied to every resource under
applyTags, and they become your default tags.
{ "applyTags": [ { "team": "alpha" } ] }
Tags passed with --tags are merged over any configured default tags, and
--tags wins for any key set in both places.
CLI reference
The following table summarizes all atx ct subcommands.
| Subcommand | Description |
|---|---|
atx ct status |
View system status including sources, repositories, analyses, findings, and remediations |
atx ct source add |
Add a source (GitHub, GitLab, Bitbucket, or local) |
atx ct source list |
List configured sources |
atx ct source get |
Show details for a single source |
atx ct source update |
Update a source's token, commit message or branch name templates, or git committer identity |
atx ct source remove |
Remove a source |
atx ct discovery scan |
Discover repositories from a source |
atx ct repository list |
List repositories with optional filters |
atx ct repository get |
Get a single repository |
atx ct repository update |
Update repository labels |
atx ct repository delete |
Delete a repository |
atx ct analysis run |
Run an analysis on repositories |
atx ct analysis get |
Get analysis details |
atx ct analysis list |
List analyses with optional status and type filters |
atx ct analysis list-artifacts |
List the artifacts, such as reports, that an analysis produced |
atx ct analysis cancel |
Cancel a running analysis |
atx ct analysis delete |
Delete an analysis |
atx ct findings list |
List findings with filters for repo, source, severity, type, status, and analysis |
atx ct findings count |
Count findings aggregated by severity, repo, or analysis type |
atx ct findings get |
Get a single finding |
atx ct findings update |
Update finding status (open or dismissed) |
atx ct findings batch-update |
Batch update multiple findings |
atx ct findings delete |
Delete a dismissed or obsolete finding |
atx ct remediation create |
Create a remediation from findings or a transformation definition |
atx ct remediation list |
List all remediations |
atx ct remediation status |
Check remediation status and view PR/MR links |
atx ct remediation retry |
Retry a failed remediation |
atx ct remediation cancel |
Cancel a running remediation |
atx ct remediation delete |
Delete a remediation |
atx ct remote provision |
Deploy remote execution infrastructure (Amazon EC2 or Batch AWS CloudFormation stack) |
atx ct remote analysis |
Run analysis remotely on AWS Transform-managed infrastructure, Amazon EC2, or Batch |
atx ct remote remediation |
Run remediation remotely on Amazon EC2 or Batch |
atx ct remote status |
Show status of a remote submission |
atx ct remote detect |
Check whether remote infrastructure is deployed |
atx ct remote update |
Update remote execution infrastructure to the latest template |
atx ct remote credentials |
Manage source tokens in Secrets Manager for remote execution |
atx ct remote cancel |
Cancel a running remote run |
atx ct remote teardown |
Destroy remote execution infrastructure |
atx ct remote network |
Discover or create VPC, subnets, and security groups for remote provisioning |
atx ct schedule create |
Create a recurring analysis schedule on AWS Transform-managed infrastructure, or on your Amazon EC2 or Batch stack with Amazon EventBridge Scheduler |
atx ct schedule list |
List schedules |
atx ct schedule get |
Show a single schedule |
atx ct schedule enable |
Enable a schedule |
atx ct schedule disable |
Disable a schedule |
atx ct schedule delete |
Delete a schedule |
atx ct schedule teardown |
Delete the scheduler role and schedule group |
atx ct setup security-agent |
Provision or manage security agent infrastructure |
atx ct mcp |
Start the MCP server exposing continuous modernization tools |
atx ct schema |
Print a machine-readable JSON manifest of the full atx ct command
surface — every command, option, and argument — so agents and automation can discover
the CLI without parsing help text |