AWSRefactoringToolkitFullAccess
Summary
Grants permission to use AWS services with the AWS Toolkit for .NET Refactoring extension for Microsoft Visual Studio. The description says it is intended to be attached to a local AWS profile.
Permissions imported from the AWS Managed Policy Reference Guide; other sections reviewed against the listed AWS sources.
Identity
- ARN
arn:aws:iam::aws:policy/AWSRefactoringToolkitFullAccess- Default version
- v8
- Created
- Last edited
- Services
- a2c, application-transformation, clouddirectory, cloudformation, codebuild, ds, ec2, ecr, ecs, iam, kms, logs, s3, secretsmanager, ssm, ssmmessages
Control-plane actions (110)
By access level: 22 List, 1 Permissions management, 28 Read, 11 Tagging, 48 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| App2Container | All 4 actions (see the App2Container page) | 2 Read, 2 Write; 0 restricted, 0 conditional | a2c:GetContainerizationJobDetails, a2c:GetDeploymentJobDetails, a2c:StartContainerizationJob, a2c:StartDeploymentJob |
| Application Transformation Service | 10 of 14 | 4 Read, 6 Write; 0 restricted, 0 conditional | application-transformation:GetContainerization, application-transformation:GetDeployment, application-transformation:GetPortingCompatibilityAssessment, application-transformation:GetPortingRecommendationAssessment, application-transformation:PutLogData, application-transformation:PutMetricData, application-transformation:StartContainerization, application-transformation:StartDeployment, application-transformation:StartPortingCompatibilityAssessment, application-transformation:StartPortingRecommendationAssessment |
| Cloud Directory | 1 of 66 | 1 List; 0 restricted, 0 conditional | clouddirectory:ListDirectories |
| CloudFormation | 10 of 104 | 2 List, 2 Read, 2 Tagging, 4 Write; 8 restricted, 0 conditional | cloudformation:CreateChangeSet, cloudformation:CreateStack, cloudformation:DescribeChangeSet, cloudformation:DescribeStackEvents, cloudformation:DescribeStacks, cloudformation:ExecuteChangeSet, cloudformation:ListStacks, cloudformation:TagResource, cloudformation:UntagResource, cloudformation:UpdateStack |
| CodeBuild | 5 of 67 | 2 Read, 3 Write; 3 restricted, 2 conditional | codebuild:BatchGetBuilds, codebuild:BatchGetProjects, codebuild:CreateProject, codebuild:StartBuild, codebuild:UpdateProject |
| Directory Service | 1 of 91 | 1 List; 0 restricted, 0 conditional | ds:DescribeDirectories |
| EC2 | 26 of 834 | 11 List, 2 Tagging, 13 Write; 14 restricted, 14 conditional | ec2:AssociateRouteTable, ec2:AttachInternetGateway, ec2:AuthorizeSecurityGroupIngress, ec2:CreateInternetGateway, ec2:CreateKeyPair, ec2:CreateRoute, ec2:CreateRouteTable, ec2:CreateSecurityGroup, ec2:CreateSubnet, ec2:CreateTags, ec2:CreateVpc, ec2:DeleteTags and 14 more |
| Elastic Container Registry | 16 of 65 | 2 List, 7 Read, 2 Tagging, 5 Write; 13 restricted, 13 conditional | ecr:BatchCheckLayerAvailability, ecr:CompleteLayerUpload, ecr:CreateRepository, ecr:DescribeImages, ecr:DescribeRepositories, ecr:GetAuthorizationToken, ecr:GetDownloadUrlForLayer, ecr:GetLifecyclePolicy, ecr:GetRepositoryPolicy, ecr:InitiateLayerUpload, ecr:ListImages, ecr:ListTagsForResource and 4 more |
| Elastic Container Service | 13 of 92 | 1 List, 5 Read, 2 Tagging, 5 Write; 8 restricted, 8 conditional | ecs:CreateCluster, ecs:CreateService, ecs:DescribeClusters, ecs:DescribeServices, ecs:DescribeTaskDefinition, ecs:DescribeTasks, ecs:ExecuteCommand, ecs:ListTagsForResource, ecs:ListTasks, ecs:RegisterTaskDefinition, ecs:TagResource, ecs:UntagResource and 1 more |
| IAM | 3 of 190 | 1 List, 1 Read, 1 Write; 2 restricted, 1 conditional | iam:CreateServiceLinkedRole, iam:GetRole, iam:ListRoles |
| KMS | 5 of 58 | 1 Permissions management, 1 Read, 3 Write; 5 restricted, 5 conditional | kms:CreateGrant, kms:Decrypt, kms:DescribeKey, kms:Encrypt, kms:GenerateDataKey |
| CloudWatch Logs | 3 of 133 | 1 Read, 1 Tagging, 1 Write; 3 restricted, 3 conditional | logs:CreateLogGroup, logs:GetLogEvents, logs:TagResource |
| S3 | 3 of 155 | 1 List, 2 Read; 0 restricted, 0 conditional | s3:GetBucketLocation, s3:GetBucketVersioning, s3:ListAllMyBuckets |
| Secrets Manager | 1 of 27 | 1 List; 0 restricted, 0 conditional | secretsmanager:ListSecrets |
| Systems Manager | 5 of 164 | 1 List, 1 Read, 2 Tagging, 1 Write; 4 restricted, 0 conditional | ssm:AddTagsToResource, ssm:DescribeSessions, ssm:GetParameters, ssm:PutParameter, ssm:RemoveTagsFromResource |
| SSM Messages | All 4 actions (see the SSM Messages page) | 4 Write; 0 restricted, 0 conditional | ssmmessages:CreateControlChannel, ssmmessages:CreateDataChannel, ssmmessages:OpenControlChannel, ssmmessages:OpenDataChannel |
Application Transformation Service: 10 actions
- application-transformation:GetContainerization (Read)
- application-transformation:GetDeployment (Read)
- application-transformation:GetPortingCompatibilityAssessment (Read)
- application-transformation:GetPortingRecommendationAssessment (Read)
- application-transformation:PutLogData (Write)
- application-transformation:PutMetricData (Write)
- application-transformation:StartContainerization (Write)
- application-transformation:StartDeployment (Write)
- application-transformation:StartPortingCompatibilityAssessment (Write)
- application-transformation:StartPortingRecommendationAssessment (Write)
Cloud Directory: 1 actions
- clouddirectory:ListDirectories (List)
CloudFormation: 10 actions
- cloudformation:CreateChangeSet (Write)
- cloudformation:CreateStack (Write)
- cloudformation:DescribeChangeSet (Read)
- cloudformation:DescribeStackEvents (Read)
- cloudformation:DescribeStacks (List)
- cloudformation:ExecuteChangeSet (Write)
- cloudformation:ListStacks (List)
- cloudformation:TagResource (Tagging)
- cloudformation:UntagResource (Tagging)
- cloudformation:UpdateStack (Write)
CodeBuild: 5 actions
- codebuild:BatchGetBuilds (Read)
- codebuild:BatchGetProjects (Read)
- codebuild:CreateProject (Write)
- codebuild:StartBuild (Write)
- codebuild:UpdateProject (Write)
Directory Service: 1 actions
- ds:DescribeDirectories (List)
EC2: 26 actions
- ec2:AssociateRouteTable (Write)
- ec2:AttachInternetGateway (Write)
- ec2:AuthorizeSecurityGroupIngress (Write)
- ec2:CreateInternetGateway (Write)
- ec2:CreateKeyPair (Write)
- ec2:CreateRoute (Write)
- ec2:CreateRouteTable (Write)
- ec2:CreateSecurityGroup (Write)
- ec2:CreateSubnet (Write)
- ec2:CreateTags (Tagging)
- ec2:CreateVpc (Write)
- ec2:DeleteTags (Tagging)
- ec2:DescribeAccountAttributes (List)
- ec2:DescribeAvailabilityZones (List)
- ec2:DescribeImages (List)
- ec2:DescribeInternetGateways (List)
- ec2:DescribeKeyPairs (List)
- ec2:DescribeNetworkInterfaces (List)
- ec2:DescribeRegions (List)
- ec2:DescribeRouteTables (List)
- ec2:DescribeSecurityGroups (List)
- ec2:DescribeSubnets (List)
- ec2:DescribeVpcs (List)
- ec2:ModifySubnetAttribute (Write)
- ec2:ModifyVpcAttribute (Write)
- ec2:RevokeSecurityGroupIngress (Write)
Elastic Container Registry: 16 actions
- ecr:BatchCheckLayerAvailability (Read)
- ecr:CompleteLayerUpload (Write)
- ecr:CreateRepository (Write)
- ecr:DescribeImages (List)
- ecr:DescribeRepositories (Read)
- ecr:GetAuthorizationToken (Read)
- ecr:GetDownloadUrlForLayer (Read)
- ecr:GetLifecyclePolicy (Read)
- ecr:GetRepositoryPolicy (Read)
- ecr:InitiateLayerUpload (Write)
- ecr:ListImages (List)
- ecr:ListTagsForResource (Read)
- ecr:PutImage (Write)
- ecr:TagResource (Tagging)
- ecr:UntagResource (Tagging)
- ecr:UploadLayerPart (Write)
Elastic Container Service: 13 actions
- ecs:CreateCluster (Write)
- ecs:CreateService (Write)
- ecs:DescribeClusters (Read)
- ecs:DescribeServices (Read)
- ecs:DescribeTaskDefinition (Read)
- ecs:DescribeTasks (Read)
- ecs:ExecuteCommand (Write)
- ecs:ListTagsForResource (Read)
- ecs:ListTasks (List)
- ecs:RegisterTaskDefinition (Write)
- ecs:TagResource (Tagging)
- ecs:UntagResource (Tagging)
- ecs:UpdateService (Write)
IAM: 3 actions
- iam:CreateServiceLinkedRole (Write)
- iam:GetRole (Read)
- iam:ListRoles (List)
KMS: 5 actions
- kms:CreateGrant (Permissions management)
- kms:Decrypt (Write)
- kms:DescribeKey (Read)
- kms:Encrypt (Write)
- kms:GenerateDataKey (Write)
CloudWatch Logs: 3 actions
- logs:CreateLogGroup (Write)
- logs:GetLogEvents (Read)
- logs:TagResource (Tagging)
S3: 3 actions
- s3:GetBucketLocation (Read)
- s3:GetBucketVersioning (Read)
- s3:ListAllMyBuckets (List)
Secrets Manager: 1 actions
- secretsmanager:ListSecrets (List)
Systems Manager: 5 actions
- ssm:AddTagsToResource (Tagging)
- ssm:DescribeSessions (List)
- ssm:GetParameters (Read)
- ssm:PutParameter (Write)
- ssm:RemoveTagsFromResource (Tagging)
Data-plane actions (4)
By access level: 1 List, 1 Read, 2 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| S3 | 4 of 25 | 1 List, 1 Read, 2 Write; 4 restricted, 1 conditional | s3:DeleteObject, s3:GetObject, s3:ListBucket, s3:PutObject |
S3: 4 actions
- s3:DeleteObject (Write)
- s3:GetObject (Read)
- s3:ListBucket (List)
- s3:PutObject (Write)
Excluded and conditional actions
No patterns are excluded by NotAction or Deny statements.
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants 62 write, tagging or permissions-management actions, short of full control of any service.
- Grants data-plane write actions on a data store, but only for scoped resources or under conditions.
Guidance
Practical scope
The policy has many statements. Most write actions are limited by name patterns or tags: CloudFormation actions only on stacks named a2c-app-*, a2c-build-* or application-transformation-app-*; CodeBuild project, EC2, Amazon ECR, Amazon ECS and CloudWatch Logs actions mostly require the a2c-generated or application-transformation tag on the request or the resource; and S3 object actions are on keys matching */refactoringtoolkit*, */a2c-generated* or */application-transformation*, plus s3:GetObject on the aws.portingassistant.dotnet.datastore bucket. ecs:ExecuteCommand is allowed only for containers named a2c-sidecar or application-transformation-sidecar, and KMS actions only for keys with an alias starting alias/application-transformation. Statements with no condition allow codebuild:StartBuild on project/*, and on Resource "*" ec2:CreateSecurityGroup, ecr:GetAuthorizationToken, application-transformation actions (Start and Get operations, PutLogData, PutMetricData), a2c actions, SSM session and ssmmessages channel actions, and 29 describe, list and get actions.
Use cases
- Let a developer use the AWS Toolkit for .NET Refactoring extension in Visual Studio to upload application artifacts to Amazon S3, build container images with AWS CodeBuild, store them in Amazon ECR, and deploy them to Amazon ECS.
Best practices
- AWS managed policies don't grant least privilege permissions. The IAM User Guide suggests using IAM Access Analyzer to see which permissions principals actually use, then writing a custom policy or generating one with only the required permissions.
Security considerations
- The policy can create VPC resources, key pairs, security groups, ECS clusters and services, CodeBuild projects and CloudFormation stacks, and can run ecs:ExecuteCommand, although most of these are limited by tags or name patterns. ec2:CreateSecurityGroup is allowed on Resource "*" without a condition.
- It allows iam:CreateServiceLinkedRole only for arn:aws:iam::*:role/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS.
- You cannot change the permissions in an AWS managed policy. If AWS updates the policy, the update affects every user, group and role it is attached to.
Assignment guidance
You can attach this policy to your users, groups and roles. The reference page also links to guidance on creating a permission set using AWS managed policies in IAM Identity Center. The description says the policy is intended to be attached to a local AWS profile. Where you attach it to an identity, it fits where use of the AWS Toolkit for .NET Refactoring extension is intended.
Related policies
Same service
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsReleaseManagementVPCPolicy
- AmazonAppStreamServiceAccess
- AmazonBioDiscoveryServiceLinkedRolePolicy
- AmazonBraketJobsExecutionPolicy
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneProjectDeploymentPermissionsBoundary
- AmazonDataZoneProjectRolePermissionsBoundary
Same domain
Frequently asked questions
- When should I attach AWSRefactoringToolkitFullAccess?
- The description says it grants permission to use AWS services with the AWS Toolkit for .NET Refactoring extension for Microsoft Visual Studio and is intended to be attached to a local AWS profile. The reference page says you can attach it to your users, groups and roles.
- What does AWSRefactoringToolkitFullAccess grant?
- It allows uploading and downloading application artifacts in Amazon S3, building container images with AWS CodeBuild, storing images in Amazon ECR, and deploying to Amazon ECS, plus optional VPC creation and connection to existing infrastructure such as AWS Directory Service. Most write actions are limited by name patterns or a2c-generated and application-transformation tags.
- What are the security risks of AWSRefactoringToolkitFullAccess?
- It can create networking, container, build and deployment resources and run commands in containers, and ec2:CreateSecurityGroup is allowed on all resources without a condition. AWS managed policies don't grant least privilege permissions, and you must consider the security risk of granting principals more permissions than they need. AWS updates to the policy affect every identity it is attached to.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"a2c:GetContainerizationJobDetails",
"a2c:GetDeploymentJobDetails",
"a2c:StartContainerizationJob",
"a2c:StartDeploymentJob"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:DescribeChangeSet",
"cloudformation:DescribeStackEvents",
"cloudformation:ExecuteChangeSet",
"cloudformation:UpdateStack",
"cloudformation:TagResource",
"cloudformation:UntagResource"
],
"Resource": [
"arn:*:cloudformation:*:*:stack/a2c-app-*",
"arn:*:cloudformation:*:*:stack/a2c-build-*",
"arn:*:cloudformation:*:*:stack/application-transformation-app-*"
]
},
{
"Effect": "Allow",
"Action": [
"codebuild:CreateProject",
"codebuild:UpdateProject"
],
"Resource": "arn:aws:codebuild:*:*:project/*",
"Condition": {
"Null": {
"aws:RequestTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"codebuild:StartBuild"
],
"Resource": "arn:aws:codebuild:*:*:project/*"
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateSecurityGroup"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateInternetGateway",
"ec2:CreateKeyPair",
"ec2:CreateRoute",
"ec2:CreateRouteTable",
"ec2:CreateSubnet",
"ec2:CreateVpc",
"ec2:AuthorizeSecurityGroupIngress"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:RequestTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateInternetGateway",
"ec2:CreateKeyPair",
"ec2:CreateRoute",
"ec2:CreateRouteTable",
"ec2:CreateSubnet",
"ec2:CreateVpc",
"ec2:AuthorizeSecurityGroupIngress"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:RequestTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateTags"
],
"Resource": "arn:aws:ec2:*:*:security-group/*",
"Condition": {
"ForAnyValue:StringEquals": {
"aws:CalledVia": [
"application-transformation.amazonaws.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateTags"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"ec2:CreateAction": [
"AuthorizeSecurityGroupIngress",
"CreateInternetGateway",
"CreateKeyPair",
"CreateRoute",
"CreateRouteTable",
"CreateSubnet",
"CreateVpc"
]
},
"Null": {
"aws:RequestTag/application-transformation": "false"
},
"ForAnyValue:StringEquals": {
"aws:CalledVia": [
"application-transformation.amazonaws.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:AssociateRouteTable",
"ec2:AttachInternetGateway",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:DeleteTags",
"ec2:ModifySubnetAttribute",
"ec2:ModifyVpcAttribute",
"ec2:RevokeSecurityGroupIngress",
"ec2:CreateSubnet",
"ec2:CreateRoute",
"ec2:CreateRouteTable"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:ResourceTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:AssociateRouteTable",
"ec2:AttachInternetGateway",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:DeleteTags",
"ec2:ModifySubnetAttribute",
"ec2:ModifyVpcAttribute",
"ec2:RevokeSecurityGroupIngress",
"ec2:CreateSubnet",
"ec2:CreateRoute",
"ec2:CreateRouteTable"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:ResourceTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecr:CreateRepository",
"ecr:TagResource"
],
"Resource": "arn:*:ecr:*:*:repository/*",
"Condition": {
"Null": {
"aws:RequestTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecr:CreateRepository",
"ecr:TagResource"
],
"Resource": "arn:*:ecr:*:*:repository/*",
"Condition": {
"Null": {
"aws:RequestTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecr:GetLifecyclePolicy",
"ecr:GetRepositoryPolicy",
"ecr:ListImages",
"ecr:ListTagsForResource",
"ecr:TagResource",
"ecr:UntagResource"
],
"Resource": "arn:*:ecr:*:*:repository/*",
"Condition": {
"Null": {
"aws:ResourceTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecr:GetLifecyclePolicy",
"ecr:GetRepositoryPolicy",
"ecr:ListImages",
"ecr:ListTagsForResource",
"ecr:TagResource",
"ecr:UntagResource"
],
"Resource": "arn:*:ecr:*:*:repository/*",
"Condition": {
"Null": {
"aws:ResourceTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:CreateCluster",
"ecs:CreateService",
"ecs:RegisterTaskDefinition",
"ecs:TagResource"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:RequestTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:CreateCluster",
"ecs:CreateService",
"ecs:RegisterTaskDefinition",
"ecs:TagResource"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:RequestTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:UpdateService",
"ecs:TagResource",
"ecs:UntagResource"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:ResourceTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:UpdateService",
"ecs:TagResource",
"ecs:UntagResource"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:ResourceTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:DescribeTaskDefinition"
],
"Resource": "*",
"Condition": {
"ForAnyValue:StringEquals": {
"aws:CalledVia": "cloudformation.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:ExecuteCommand"
],
"Resource": "*",
"Condition": {
"StringLike": {
"ecs:container-name": "a2c-sidecar"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:ExecuteCommand"
],
"Resource": "*",
"Condition": {
"StringLike": {
"ecs:container-name": "application-transformation-sidecar"
}
}
},
{
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS",
"Condition": {
"StringLike": {
"iam:AWSServiceName": "ecs.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:TagResource"
],
"Resource": [
"arn:aws:logs:*:*:log-group:/aws/codebuild/*:*",
"arn:aws:logs:*:*:log-group:/aws/ecs/containerinsights/*:*",
"arn:aws:logs:*:*:log-group:/aws/ecs/container-logs/*:*"
],
"Condition": {
"Null": {
"aws:RequestTag/a2c-generated": "false"
},
"ForAllValues:StringEquals": {
"aws:TagKeys": [
"a2c-generated"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:TagResource"
],
"Resource": [
"arn:aws:logs:*:*:log-group:/aws/ecs/containerinsights/*:*",
"arn:aws:logs:*:*:log-group:/aws/ecs/container-logs/*:*"
],
"Condition": {
"Null": {
"aws:RequestTag/application-transformation": "false"
},
"ForAllValues:StringEquals": {
"aws:TagKeys": [
"application-transformation"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"logs:GetLogEvents"
],
"Resource": [
"arn:aws:logs:*:*:log-group:/aws/codebuild/*:*",
"arn:aws:logs:*:*:log-group:/aws/ecs/containerinsights/*:*",
"arn:aws:logs:*:*:log-group:/aws/ecs/container-logs/*:*"
],
"Condition": {
"Null": {
"aws:ResourceTag/a2c-generated": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"logs:GetLogEvents"
],
"Resource": [
"arn:aws:logs:*:*:log-group:/aws/ecs/containerinsights/*:*",
"arn:aws:logs:*:*:log-group:/aws/ecs/container-logs/*:*"
],
"Condition": {
"Null": {
"aws:ResourceTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ssm:AddTagsToResource",
"ssm:GetParameters",
"ssm:PutParameter",
"ssm:RemoveTagsFromResource"
],
"Resource": "arn:aws:ssm:*:*:parameter/a2c-generated-check-ecs-slr-*"
},
{
"Effect": "Allow",
"Action": [
"ssm:DescribeSessions",
"ssmmessages:CreateControlChannel",
"ssmmessages:CreateDataChannel",
"ssmmessages:OpenControlChannel",
"ssmmessages:OpenDataChannel"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::*/refactoringtoolkit*",
"arn:aws:s3:::*/a2c-generated*",
"arn:aws:s3:::*/application-transformation*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::*",
"Condition": {
"StringLike": {
"s3:prefix": [
"application-transformation",
"refactoringtoolkit"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"cloudformation:DescribeStacks",
"cloudformation:ListStacks",
"clouddirectory:ListDirectories",
"codebuild:BatchGetProjects",
"codebuild:BatchGetBuilds",
"ds:DescribeDirectories",
"ec2:DescribeAccountAttributes",
"ec2:DescribeAvailabilityZones",
"ec2:DescribeImages",
"ec2:DescribeInternetGateways",
"ec2:DescribeKeyPairs",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeRouteTables",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVpcs",
"ec2:DescribeRegions",
"ecr:DescribeImages",
"ecr:DescribeRepositories",
"ecs:DescribeClusters",
"ecs:DescribeServices",
"ecs:DescribeTasks",
"ecs:ListTagsForResource",
"ecs:ListTasks",
"iam:ListRoles",
"s3:GetBucketLocation",
"s3:GetBucketVersioning",
"s3:ListAllMyBuckets",
"secretsmanager:ListSecrets"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iam:GetRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::aws.portingassistant.dotnet.datastore",
"arn:aws:s3:::aws.portingassistant.dotnet.datastore/*"
]
},
{
"Effect": "Allow",
"Action": [
"application-transformation:StartPortingCompatibilityAssessment",
"application-transformation:GetPortingCompatibilityAssessment",
"application-transformation:StartPortingRecommendationAssessment",
"application-transformation:GetPortingRecommendationAssessment",
"application-transformation:PutLogData",
"application-transformation:PutMetricData",
"application-transformation:StartContainerization",
"application-transformation:GetContainerization",
"application-transformation:StartDeployment",
"application-transformation:GetDeployment"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:Encrypt",
"kms:DescribeKey",
"kms:GenerateDataKey"
],
"Resource": "arn:aws:kms:*::*",
"Condition": {
"ForAnyValue:StringLike": {
"kms:ResourceAliases": "alias/application-transformation*"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecr:InitiateLayerUpload",
"ecr:PutImage",
"ecr:UploadLayerPart",
"ecr:CompleteLayerUpload",
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer"
],
"Resource": "arn:*:ecr:*:*:repository/*",
"Condition": {
"Null": {
"ecr:ResourceTag/application-transformation": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"kms:CreateGrant"
],
"Resource": "arn:aws:kms:*::*",
"Condition": {
"Bool": {
"kms:GrantIsForAWSResource": true
},
"ForAnyValue:StringLike": {
"kms:ResourceAliases": "alias/application-transformation*"
}
}
}
]
}
Version history
Current version v8, edited by AWS on 2026-02-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSRefactoringToolkitFullAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSRefactoringToolkitFullAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSRefactoringToolkitFullAccessCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSRefactoringToolkitFullAccessTerraform
resource "aws_iam_role_policy_attachment" "awsrefactoringtoolkitfullaccess" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSRefactoringToolkitFullAccess"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSRefactoringToolkitFullAccess"),
);Sources
- AWSRefactoringToolkitFullAccess (AWS Managed Policy Reference Guide) (retrieved ; supports summary, practicalScope, securityConsiderations, assignmentGuidance, faqs, useCases)
- Managed policies and inline policies (IAM User Guide) (retrieved ; supports securityConsiderations, faqs)
- AWS managed policies for job functions (IAM User Guide) (retrieved ; supports bestPractices, faqs)