From be3dab35925873cfba6c851b0f446e1bb4f5ddd2 Mon Sep 17 00:00:00 2001 From: Sai <278488997+saicharansm@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:28:19 -0800 Subject: [PATCH] feat(aws-transform): Sync CLI 3.24.0 guidance Publish the merged AWS Transform guidance through the cli-3.24.0 source tag. Align custom and continuous modernization commands, add AWS Health Readiness analysis, update remote execution policies, and include the existing-network VMware workflow. Bump the public Power version from 2.8.0 to 2.9.0. --- aws-transform/POWER.md | 2 +- ...formInfrastructureExecutorAccessBatch.json | 142 +++++ ...nsformInfrastructureExecutorAccessEC2.json | 50 +- ...STransformSecurityAgentExecutorAccess.json | 77 ++- ...kload-continuous-modernization-analysis.md | 139 +++-- ...ous-modernization-aws-managed-execution.md | 51 +- ...ontinuous-modernization-batch-execution.md | 122 +++- ...load-continuous-modernization-discovery.md | 22 +- ...-continuous-modernization-ec2-execution.md | 164 +++-- ...kload-continuous-modernization-findings.md | 44 +- ...workload-continuous-modernization-guide.md | 32 +- ...ad-continuous-modernization-remediation.md | 117 ++-- ...load-continuous-modernization-reporting.md | 73 ++- ...rkload-continuous-modernization-routing.md | 29 +- ...kload-continuous-modernization-schedule.md | 42 +- ...continuous-modernization-security-agent.md | 46 +- ...workload-continuous-modernization-setup.md | 10 +- ...orkload-continuous-modernization-source.md | 104 +++- ...orkload-continuous-modernization-status.md | 20 +- ...ontinuous-modernization-troubleshooting.md | 15 +- .../steering/workload-custom-cli-reference.md | 98 ++- .../workload-custom-multi-transformation.md | 73 +-- .../workload-custom-remote-execution.md | 570 ++++++++---------- .../steering/workload-custom-repo-analysis.md | 5 +- .../workload-custom-results-synthesis.md | 14 +- .../workload-custom-single-transformation.md | 142 ++--- .../steering/workload-custom-td-creation.md | 82 ++- .../workload-custom-troubleshooting.md | 143 +++-- aws-transform/steering/workload-custom.md | 391 ++++-------- .../steering/workload-vmware-network.md | 273 +++++++-- 30 files changed, 1830 insertions(+), 1262 deletions(-) create mode 100644 aws-transform/steering/AWSTransformInfrastructureExecutorAccessBatch.json diff --git a/aws-transform/POWER.md b/aws-transform/POWER.md index ecba3fb9..159ca91c 100644 --- a/aws-transform/POWER.md +++ b/aws-transform/POWER.md @@ -4,7 +4,7 @@ displayName: "AWS Transform" description: "Migrate, modernize, and upgrade codebases: .NET Framework to .NET 8/10, mainframe COBOL to Java, VMware VMs to EC2, SQL Server/Oracle/MySQL to Aurora, and Java/Python/Node.js version upgrades or AWS SDK migrations. Assess, plan, and execute code transformations from your IDE." keywords: ["migrate", "modernize", "mainframe", "cobol", "vmware", "dotnet", ".net framework", "windows", "sql server", "oracle", "mysql", "aurora", "ec2 migration", "rehost", "lift-and-shift", "replatform", "legacy", "code upgrade", "sdk migration", "boto3", "java upgrade", "atx", "continuous modernization", "AWS Transform - continuous modernization"] author: "AWS" -version: "2.8.0" +version: "2.9.0" --- # AWS Transform Power diff --git a/aws-transform/steering/AWSTransformInfrastructureExecutorAccessBatch.json b/aws-transform/steering/AWSTransformInfrastructureExecutorAccessBatch.json new file mode 100644 index 00000000..3f584fa4 --- /dev/null +++ b/aws-transform/steering/AWSTransformInfrastructureExecutorAccessBatch.json @@ -0,0 +1,142 @@ +{ + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "CFNRead", + "Effect": "Allow", + "Action": "cloudformation:DescribeStacks", + "Resource": ["arn:aws:cloudformation:*:*:stack/AtxInfrastructureStack/*", "arn:aws:cloudformation:*:*:stack/AtxInfrastructureStack-*/*", "arn:aws:cloudformation:*:*:stack/atx-scheduler/*", "arn:aws:cloudformation:*:*:stack/AtxDispatcherStack/*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "CFNListStacksForDetect", + "Effect": "Allow", + "Action": "cloudformation:ListStacks", + "Resource": "*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "TagGetATXStacks", + "Effect": "Allow", + "Action": "tag:GetResources", + "Resource": "*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "EC2NetworkDiscovery", + "Effect": "Allow", + "Action": ["ec2:DescribeVpcs", "ec2:DescribeSubnets", "ec2:DescribeSecurityGroups", "ec2:DescribeRouteTables"], + "Resource": "*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "LambdaTriggerBatchJobs", + "Effect": "Allow", + "Action": ["lambda:InvokeFunction", "lambda:GetFunctionConfiguration"], + "Resource": ["arn:aws:lambda:*:*:function:atx-trigger-batch-jobs", "arn:aws:lambda:*:*:function:atx-trigger-batch-jobs-*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "BatchDescribeJobs", + "Effect": "Allow", + "Action": "batch:DescribeJobs", + "Resource": "*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "BatchTerminateATXJobs", + "Effect": "Allow", + "Action": "batch:TerminateJob", + "Resource": "arn:aws:batch:*:*:job/*", + "Condition": { + "StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}, + "Null": {"aws:ResourceTag/batchId": "false"} + } + }, + { + "Sid": "S3CustomOutput", + "Effect": "Allow", + "Action": ["s3:GetObject", "s3:PutObject", "s3:ListBucket"], + "Resource": ["arn:aws:s3:::atx-custom-output-*", "arn:aws:s3:::atx-custom-output-*/*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "S3CtOutputRead", + "Effect": "Allow", + "Action": ["s3:GetObject", "s3:ListBucket"], + "Resource": ["arn:aws:s3:::atx-ct-output-*", "arn:aws:s3:::atx-ct-output-*/*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "S3UploadSourceCode", + "Effect": "Allow", + "Action": ["s3:PutObject", "s3:AbortMultipartUpload"], + "Resource": "arn:aws:s3:::atx-source-code-*/*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "KMSEncryptDecrypt", + "Effect": "Allow", + "Action": ["kms:Decrypt", "kms:GenerateDataKey"], + "Resource": "arn:aws:kms:*:*:key/*", + "Condition": { + "StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}, + "ForAnyValue:StringLike": {"kms:ResourceAliases": ["alias/atx-encryption-key", "alias/atx-encryption-key-*"]} + } + }, + { + "Sid": "CmodCustomerLogGroupManagement", + "Effect": "Allow", + "Action": ["logs:CreateLogGroup", "logs:PutRetentionPolicy"], + "Resource": "arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "CmodCustomerLogStreamWrite", + "Effect": "Allow", + "Action": ["logs:CreateLogStream", "logs:PutLogEvents"], + "Resource": ["arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization:log-stream:local/*", "arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization:log-stream:batch/*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "SM", + "Effect": "Allow", + "Action": ["secretsmanager:GetSecretValue", "secretsmanager:DescribeSecret"], + "Resource": "arn:aws:secretsmanager:*:*:secret:atx/*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "SchedLifecycle", + "Effect": "Allow", + "Action": ["scheduler:CreateSchedule", "scheduler:DeleteSchedule", "scheduler:GetSchedule", "scheduler:UpdateSchedule"], + "Resource": "arn:aws:scheduler:*:*:schedule/atx-ct/*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "SchedList", + "Effect": "Allow", + "Action": "scheduler:ListSchedules", + "Resource": "*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "IAMPassSchedulerRole", + "Effect": "Allow", + "Action": "iam:PassRole", + "Resource": ["arn:aws:iam::*:role/AtxSchedulerInvocationRole", "arn:aws:iam::*:role/AtxSchedulerInvocationRole-*"], + "Condition": { + "StringEquals": { + "iam:PassedToService": "scheduler.amazonaws.com", + "aws:ResourceAccount": "${aws:PrincipalAccount}" + } + } + }, + { + "Sid": "SQSEnqueueToDispatcher", + "Effect": "Allow", + "Action": "sqs:SendMessage", + "Resource": "arn:aws:sqs:*:*:atx-dispatcher-queue", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + } + ] +} diff --git a/aws-transform/steering/AWSTransformInfrastructureExecutorAccessEC2.json b/aws-transform/steering/AWSTransformInfrastructureExecutorAccessEC2.json index 3a741db7..a0d3736f 100644 --- a/aws-transform/steering/AWSTransformInfrastructureExecutorAccessEC2.json +++ b/aws-transform/steering/AWSTransformInfrastructureExecutorAccessEC2.json @@ -5,7 +5,7 @@ "Sid": "CFNRead", "Effect": "Allow", "Action": ["cloudformation:DescribeStacks", "cloudformation:DescribeStackEvents", "cloudformation:DescribeStackResources", "cloudformation:DescribeStackDriftDetectionStatus"], - "Resource": "arn:aws:cloudformation:*:*:stack/atx-*/*" + "Resource": ["arn:aws:cloudformation:*:*:stack/atx-*/*", "arn:aws:cloudformation:*:*:stack/AtxDispatcherStack/*"] }, { "Sid": "CFNValidateTemplate", @@ -63,7 +63,7 @@ "Resource": "arn:aws:kms:*:*:key/*", "Condition": { "StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}, - "ForAnyValue:StringEquals": {"kms:ResourceAliases": "alias/atx-encryption-key"} + "ForAnyValue:StringLike": {"kms:ResourceAliases": ["alias/atx-encryption-key", "alias/atx-encryption-key-*"]} } }, { @@ -84,7 +84,7 @@ "Sid": "SchedLifecycle", "Effect": "Allow", "Action": ["scheduler:CreateSchedule", "scheduler:DeleteSchedule", "scheduler:GetSchedule", "scheduler:UpdateSchedule"], - "Resource": "arn:aws:scheduler:*:*:schedule/atx-control-tower/*", + "Resource": ["arn:aws:scheduler:*:*:schedule/atx-control-tower/*", "arn:aws:scheduler:*:*:schedule/atx-ct/*"], "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} }, { @@ -117,7 +117,7 @@ "Sid": "IAMPassSchedulerRole", "Effect": "Allow", "Action": "iam:PassRole", - "Resource": "arn:aws:iam::*:role/AtxSchedulerInvocationRole", + "Resource": ["arn:aws:iam::*:role/AtxSchedulerInvocationRole", "arn:aws:iam::*:role/AtxSchedulerInvocationRole-*"], "Condition": { "StringEquals": { "iam:PassedToService": "scheduler.amazonaws.com", @@ -144,6 +144,48 @@ "Effect": "Allow", "Action": "sts:GetCallerIdentity", "Resource": "*" + }, + { + "Sid": "CFNList", + "Effect": "Allow", + "Action": ["cloudformation:ListStacks", "tag:GetResources"], + "Resource": "*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "LogGroup", + "Effect": "Allow", + "Action": ["logs:CreateLogGroup", "logs:PutRetentionPolicy"], + "Resource": "arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "LogStream", + "Effect": "Allow", + "Action": ["logs:CreateLogStream", "logs:PutLogEvents"], + "Resource": ["arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization:log-stream:ec2/*", "arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization:log-stream:local/*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "S3CustomOut", + "Effect": "Allow", + "Action": ["s3:GetObject", "s3:ListBucket"], + "Resource": ["arn:aws:s3:::atx-custom-output-*", "arn:aws:s3:::atx-custom-output-*/*"], + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "S3Abort", + "Effect": "Allow", + "Action": "s3:AbortMultipartUpload", + "Resource": "arn:aws:s3:::atx-source-code-*/*", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} + }, + { + "Sid": "SQSDispatch", + "Effect": "Allow", + "Action": "sqs:SendMessage", + "Resource": "arn:aws:sqs:*:*:atx-dispatcher-queue", + "Condition": {"StringEquals": {"aws:ResourceAccount": "${aws:PrincipalAccount}"}} } ] } diff --git a/aws-transform/steering/AWSTransformSecurityAgentExecutorAccess.json b/aws-transform/steering/AWSTransformSecurityAgentExecutorAccess.json index 3a92a8ac..d17e3eff 100644 --- a/aws-transform/steering/AWSTransformSecurityAgentExecutorAccess.json +++ b/aws-transform/steering/AWSTransformSecurityAgentExecutorAccess.json @@ -47,7 +47,10 @@ "Sid": "S3SecurityAgentUpload", "Effect": "Allow", "Action": "s3:PutObject", - "Resource": "arn:aws:s3:::kct-security-agent-*/security-scans/*", + "Resource": [ + "arn:aws:s3:::kct-security-agent-*/security-scans/*", + "arn:aws:s3:::atx-security-agent-*/security-scans/*" + ], "Condition": { "StringEquals": { "s3:ResourceAccount": "${aws:PrincipalAccount}" @@ -65,6 +68,78 @@ "aws:ResourceAccount": "${aws:PrincipalAccount}" } } + }, + { + "Sid": "CFNDescribeSecurityAgentStack", + "Effect": "Allow", + "Action": "cloudformation:DescribeStacks", + "Resource": "arn:aws:cloudformation:*:*:stack/AtxSecurityAgentStack-*/*", + "Condition": { + "StringEquals": { + "aws:ResourceAccount": "${aws:PrincipalAccount}" + } + } + }, + { + "Sid": "CFNDiscoverSecurityAgentStack", + "Effect": "Allow", + "Action": "cloudformation:ListStacks", + "Resource": "*", + "Condition": { + "StringEquals": { + "aws:ResourceAccount": "${aws:PrincipalAccount}" + } + } + }, + { + "Sid": "CmodCustomerLogGroupManagement", + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:PutRetentionPolicy" + ], + "Resource": "arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization", + "Condition": { + "StringEquals": { + "aws:ResourceAccount": "${aws:PrincipalAccount}" + } + } + }, + { + "Sid": "CmodCustomerLogStreamWrite", + "Effect": "Allow", + "Action": [ + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:log-group:/aws/TransformContinuousModernization:log-stream:local/*", + "Condition": { + "StringEquals": { + "aws:ResourceAccount": "${aws:PrincipalAccount}" + } + } + }, + { + "Sid": "S3SecurityAgentBucketList", + "Effect": "Allow", + "Action": "s3:ListBucket", + "Resource": "arn:aws:s3:::atx-security-agent-*", + "Condition": { + "StringEquals": { + "s3:ResourceAccount": "${aws:PrincipalAccount}" + } + } + }, + { + "Sid": "SecurityAgentApi2", + "Effect": "Allow", + "Action": "securityagent:StopCodeReviewJob", + "Resource": "arn:aws:securityagent:*:*:agent-space/*", + "Condition": { + "StringEquals": { + "aws:ResourceAccount": "${aws:PrincipalAccount}" + } + } } ] } diff --git a/aws-transform/steering/workload-continuous-modernization-analysis.md b/aws-transform/steering/workload-continuous-modernization-analysis.md index 638962b7..0ae2c9c0 100644 --- a/aws-transform/steering/workload-continuous-modernization-analysis.md +++ b/aws-transform/steering/workload-continuous-modernization-analysis.md @@ -1,6 +1,6 @@ --- name: analysis -description: Run/start/restart/cancel/delete analyses (rapid-techdebt-analysis, tech-debt-comprehensive, security, agentic-readiness, modernization-readiness, custom). Detects vulnerabilities, outdated dependencies, migration opportunities, modernization candidates. Custom type runs any TD. +description: Run/start/restart/cancel/delete analyses (rapid-techdebt-analysis, tech-debt-comprehensive, security, agentic-readiness, modernization-readiness, graviton-readiness, custom). Detects vulnerabilities, outdated dependencies, migration opportunities, modernization candidates. Custom type runs one of your own analysis transformation definitions. --- name: analysis @@ -36,26 +36,37 @@ If the user explicitly asks to disable telemetry, omit `--telemetry` for the res - **EC2** -- follow [continuous-modernization-ec2-execution](workload-continuous-modernization-ec2-execution.md) - **Batch** -- follow [continuous-modernization-batch-execution](workload-continuous-modernization-batch-execution.md) -## Repository limit per request (max 100) +## Repositories per run -A single `atx ct analysis run` can be associated with at most **100 repositories**. Before starting an analysis that targets many repos (for example a whole source), check how many repositories are in scope — `atx ct source list` or `atx ct repository list --source ` report the per-source count. (Bare `atx ct status` shows workspace-wide totals across all sources, so prefer a scoped form when the analysis targets a single source.) +`atx ct analysis run` has no fixed repository cap of its own. The AWS Transform service refuses a run whose repository list is longer than the limit for the account (the service allows up to 5,000), and a request body over about 950 KB is refused before it is sent. In both cases nothing is created. The messages are `AWS Transform refused this analysis: repositories is more than this account may put in ONE analysis (...). Split the submission (for example with --repo), ...` and `This analysis would send a -byte ... request, over the 950000-byte budget ... Split the submission (for example with --repo), or use shorter source/repository names.` -If the scope exceeds 100 repositories, split it into multiple runs, each targeting at most 100 repos (pass the repos in batches via `--repo ::`), and tell the user you are breaking the work up because of the 100-repo-per-request limit. Never issue a single run associated with more than 100 repositories — it will be rejected. Example: 300 repos → three runs (100 + 100 + 100); 600 repos → six runs (100 each). +Before starting an analysis that targets many repos (for example a whole source), check how many repositories are in scope: `atx ct source list` or `atx ct repository list --source ` report the per-source count. (Bare `atx ct status` shows workspace-wide totals across all sources, so prefer a scoped form when the analysis targets a single source.) If a run is refused for its size, split the repositories into batches and start one run per batch with `--repo ::[,::...]`, sized under the limit the message names, and tell the user you are splitting the work. Don't guess a batch size and retry in a loop. ## Commands ```bash # Run analysis. Pass --wait so the command blocks until the run finishes (preferred — see "Running long analyses" below). -atx ct analysis run --type --source [--repo ::] --wait --telemetry "agent=,executionMode=local" +atx ct analysis run --type --source [--repo ::] --wait --telemetry "agent=,executionMode=local" -# --wait is only in newer CLI versions. If it isn't supported, run the same command without --wait. -atx ct analysis run --type --source [--repo ::] --telemetry "agent=,executionMode=local" +# --wait needs CLI 3.2.0 or later (check `atx ct --version`). On an older CLI, run the same command without --wait. +atx ct analysis run --type --source [--repo ::] --telemetry "agent=,executionMode=local" # Run custom analysis with a specific transformation definition -atx ct analysis run --type custom --transformation-name --source --repo :: --wait --telemetry "agent=,executionMode=local" +atx ct analysis run --type custom --transformation-name --source --repo :: --wait --telemetry "agent=,executionMode=local" # Run custom analysis with configuration (file://, JSON, or key=value) -atx ct analysis run --type custom --transformation-name -g "additionalPlanContext=Focus on auth module" --source --repo :: --wait --telemetry "agent=,executionMode=local" +atx ct analysis run --type custom --transformation-name -g "additionalPlanContext=Focus on auth module" --source --repo :: --wait --telemetry "agent=,executionMode=local" + +# Several repos in one run: --repo (or its alias --repos) is repeatable and/or comma-separated; bare names need --source +atx ct analysis run --type security --repo svc-a,svc-b --source --wait --telemetry "agent=,executionMode=local" + +# Steer the readiness assessments (see "Readiness steering flags") +atx ct analysis run --type agentic-readiness --source --agent-scope --context "" --wait --telemetry "agent=,executionMode=local" +atx ct analysis run --type modernization-readiness --source --prefer eks,aurora --avoid self-managed-kafka --context "" --wait --telemetry "agent=,executionMode=local" + +# Optional on any run: --display-name labels the run in `analysis get`/`analysis list`; +# --json prints only { analysisId, status, total, findingCount } on stdout (for scripting) +atx ct analysis run --type rapid-techdebt-analysis --repo :: --display-name "