Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws-transform/POWER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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}"}}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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-*"]}
}
},
{
Expand All @@ -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}"}}
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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}"}}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}"
}
}
}
]
}
Loading
Loading