mgn:GetAgentCommandForMgn is a Read access-level action in the mgn service. Grants permission to get agent command
ARNs that mgn:GetAgentCommandForMgn can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants mgn:GetAgentCommandForMgn.
Filters access by tag key-value pairs attached to the resource
A minimal policy that allows mgn:GetAgentCommandForMgn. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowMgnGetAgentCommandForMgn",
"Effect": "Allow",
"Action": "mgn:GetAgentCommandForMgn",
"Resource": "*"
}
]
}