Skip to main content
IAM Policy Map

AWSApplicationMigrationAgentPolicy_v2

OperatorService roleActivePermissions reviewedShow on mapCompare

Summary

This policy allows using the AWS Replication Agent, which is used with AWS Application Migration Service (MGN) to migrate external servers to AWS. We do not recommend that you attach this policy to your IAM users or roles.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/service-role/AWSApplicationMigrationAgentPolicy_v2
Default version
v1
Created
Last edited
Services
mgn

Control-plane actions (11)

By access level: 4 Read, 7 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
MGN11 of 1474 Read, 7 Write; 11 restricted, 0 conditionalmgn:GetAgentCommandForMgn, mgn:GetAgentConfirmedResumeInfoForMgn, mgn:GetAgentReplicationInfoForMgn, mgn:GetAgentRuntimeConfigurationForMgn, mgn:IssueClientCertificateForMgn, mgn:SendAgentLogsForMgn, mgn:SendAgentMetricsForMgn, mgn:UpdateAgentBacklogForMgn, mgn:UpdateAgentConversionInfoForMgn, mgn:UpdateAgentReplicationInfoForMgn, mgn:UpdateAgentSourcePropertiesForMgn
MGN: 11 actions
  • mgn:GetAgentCommandForMgn (Read)
  • mgn:GetAgentConfirmedResumeInfoForMgn (Read)
  • mgn:GetAgentReplicationInfoForMgn (Read)
  • mgn:GetAgentRuntimeConfigurationForMgn (Read)
  • mgn:IssueClientCertificateForMgn (Write)
  • mgn:SendAgentLogsForMgn (Write)
  • mgn:SendAgentMetricsForMgn (Write)
  • mgn:UpdateAgentBacklogForMgn (Write)
  • mgn:UpdateAgentConversionInfoForMgn (Write)
  • mgn:UpdateAgentReplicationInfoForMgn (Write)
  • mgn:UpdateAgentSourcePropertiesForMgn (Write)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: scoped.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants 7 write, tagging or permissions-management actions, short of full control of any service.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "mgn:SendAgentMetricsForMgn",
        "mgn:SendAgentLogsForMgn",
        "mgn:UpdateAgentSourcePropertiesForMgn",
        "mgn:UpdateAgentReplicationInfoForMgn",
        "mgn:UpdateAgentConversionInfoForMgn",
        "mgn:GetAgentCommandForMgn",
        "mgn:GetAgentConfirmedResumeInfoForMgn",
        "mgn:GetAgentRuntimeConfigurationForMgn",
        "mgn:UpdateAgentBacklogForMgn",
        "mgn:GetAgentReplicationInfoForMgn",
        "mgn:IssueClientCertificateForMgn"
      ],
      "Resource": "arn:aws:mgn:*:*:source-server/${aws:SourceIdentity}"
    }
  ]
}

Version history

Current version v1, edited by AWS on 2022-06-06. 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/service-role/AWSApplicationMigrationAgentPolicy_v2
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSApplicationMigrationAgentPolicy_v2
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSApplicationMigrationAgentPolicy_v2

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSApplicationMigrationAgentPolicy_v2

Terraform

resource "aws_iam_role_policy_attachment" "service_role_awsapplicationmigrationagentpolicy_v2" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/service-role/AWSApplicationMigrationAgentPolicy_v2"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AWSApplicationMigrationAgentPolicy_v2"),
);

Sources

Pending editorial review. No editorial sources are listed yet.