drs:SendAgentLogsForDrs

Write

drs:SendAgentLogsForDrs is a Write access-level action in the drs service. Grants permission to send agent logs

Resource types

ARNs that drs:SendAgentLogsForDrs can be scoped to in an IAM policy.

arn:${Partition}:drs:${Region}:${Account}:recovery-instance/${RecoveryInstanceID}
RecoveryInstanceResource
arn:${Partition}:drs:${Region}:${Account}:source-server/${SourceServerID}
SourceServerResource

Condition keys

Keys you can use in the Condition block of a policy that grants drs:SendAgentLogsForDrs.

aws:ResourceTag/${TagKey} String

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

drs:EC2InstanceARN ARN

Filters access by the EC2 instance the request originated from

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDrsSendAgentLogsForDrs",
      "Effect": "Allow",
      "Action": "drs:SendAgentLogsForDrs",
      "Resource": "*"
    }
  ]
}

Related actions in drs

View all drs actions →