mgn:TerminateTargetInstances

Write

mgn:TerminateTargetInstances is a Write access-level action in the mgn service. Grants permission to terminate target instances

Resource types

ARNs that mgn:TerminateTargetInstances can be scoped to in an IAM policy.

arn:${Partition}:mgn:${Region}:${Account}:source-server/${SourceServerID}
SourceServerResource

Condition keys

Keys you can use in the Condition block of a policy that grants mgn:TerminateTargetInstances.

aws:ResourceTag/${TagKey} String

Filters access by tag key-value pairs attached to the resource

Dependent actions

To use mgn:TerminateTargetInstances you may also need to grant:

Example IAM policy

A minimal policy that allows mgn:TerminateTargetInstances. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowMgnTerminateTargetInstances",
      "Effect": "Allow",
      "Action": "mgn:TerminateTargetInstances",
      "Resource": "*"
    }
  ]
}

Related actions in mgn

View all mgn actions →