AWSApplicationMigrationEC2Access
Last Modified
Mar 12, 2026
March 12, 2026 at 09:25 PM UTC
Version
v10
Total Versions
7
Created
Feb 12, 2026
Actions
35
Risk
MediumThe same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- Medium
Can launch resources that run as a more privileged role
Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.
- iam:PassRole: condition iam:PassedToService, on arn:aws:iam::*:role/service-role/AWSApplicationMigrationConversionServerRole
- ec2:RunInstances: condition aws:RequestTag/AWSApplicationMigrationServiceManaged, aws:ViaAWSService, on arn:aws:ec2:*:*:instance/*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
- Medium
Can take over existing resources that run as another role
Grants the actions of 3 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- ec2:ModifyInstanceAttribute: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, aws:ViaAWSService, on arn:aws:ec2:*:*:instance/*
- ec2:StopInstances: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, aws:ViaAWSService, on arn:aws:ec2:*:*:instance/*
- ec2:StartInstances: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, aws:ViaAWSService, on arn:aws:ec2:*:*:instance/*
- ec2:CreateLaunchTemplateVersion: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, on arn:aws:ec2:*:*:launch-template/*
- ec2:ModifyLaunchTemplate: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, on arn:aws:ec2:*:*:launch-template/*
- ec2:CreateLaunchTemplateVersion: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, on arn:aws:ec2:*:*:launch-template/*
- ec2:ModifyLaunchTemplate: condition aws:ResourceTag/AWSApplicationMigrationServiceManaged, on arn:aws:ec2:*:*:launch-template/*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"arn:aws:iam::*:role/service-role/AWSApplicationMigrationConversionServerRole"
],
"Condition": {
"StringEquals": {
"iam:PassedToService": "ec2.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DeleteSnapshot"
],
"Resource": "arn:aws:ec2:*:*:snapshot/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeSnapshots",
"ec2:DescribeImages",
"ec2:DescribeVolumes"
],
"Resource": "*",
"Condition": {
"ForAnyValue:StringEquals": {
"aws:CalledVia": [
"mgn.amazonaws.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateLaunchTemplateVersion",
"ec2:ModifyLaunchTemplate",
"ec2:DeleteLaunchTemplateVersions"
],
"Resource": "arn:aws:ec2:*:*:launch-template/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateLaunchTemplate"
],
"Resource": "arn:aws:ec2:*:*:launch-template/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSApplicationMigrationServiceManaged": "false"
},
"ForAnyValue:StringEquals": {
"aws:CalledVia": [
"mgn.amazonaws.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DeleteLaunchTemplate"
],
"Resource": "arn:aws:ec2:*:*:launch-template/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"ForAnyValue:StringEquals": {
"aws:CalledVia": [
"mgn.amazonaws.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DeleteVolume"
],
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:TerminateInstances",
"ec2:ModifyInstanceAttribute",
"ec2:GetConsoleOutput",
"ec2:GetConsoleScreenshot"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:RevokeSecurityGroupEgress",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:AuthorizeSecurityGroupEgress"
],
"Resource": "arn:aws:ec2:*:*:security-group/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateVolume"
],
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": "ec2:CreateSecurityGroup",
"Resource": "arn:aws:ec2:*:*:vpc/*"
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateSecurityGroup"
],
"Resource": "arn:aws:ec2:*:*:security-group/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateSnapshot"
],
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"Null": {
"ec2:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateSnapshot"
],
"Resource": "arn:aws:ec2:*:*:snapshot/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DetachVolume",
"ec2:AttachVolume"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"Null": {
"ec2:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:AttachVolume"
],
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"Null": {
"ec2:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DetachVolume"
],
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": [
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*:*:volume/*",
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:image/*",
"arn:aws:ec2:*:*:network-interface/*",
"arn:aws:ec2:*:*:launch-template/*"
],
"Condition": {
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": [
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*:*:volume/*",
"arn:aws:ec2:*:*:snapshot/*",
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:launch-template/*",
"arn:aws:ec2:*:*:network-interface/*"
],
"Condition": {
"StringEquals": {
"ec2:CreateAction": [
"CreateSecurityGroup",
"CreateVolume",
"CreateSnapshot",
"RunInstances",
"CreateLaunchTemplate"
]
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateTags",
"ec2:ModifyVolume"
],
"Resource": [
"arn:aws:ec2:*:*:volume/*"
],
"Condition": {
"Null": {
"ec2:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateVolume"
],
"Resource": "arn:aws:ec2:*:*:snapshot/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSApplicationMigrationServiceManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
}
]
},
"VersionId": "v10",
"IsDefaultVersion": true,
"CreateDate": "2026-02-12T18:00:41+00:00"
}
}Version History (12 recorded)
Raw historyAWSApplicationMigrationEC2Access - Policy Version v10
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
a56c565AWSApplicationMigrationEC2Access - Policy Version v10
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
267c5dcAWSApplicationMigrationEC2Access - Policy Version v8
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
998b2b4Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Feb 11, 2025
90c7b46Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Jan 8, 2025
c77e912Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Feb 6, 2023
586f575Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Feb 6, 2023
9c3bcbaUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 27, 2022
005dc09Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Mar 2, 2022
e8dae0bUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 7, 2021
56438e7