{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DRSStagingAccountPolicyv21",
      "Effect": "Allow",
      "Action": [
        "drs:DescribeSourceServers",
        "drs:DescribeRecoverySnapshots",
        "drs:CreateConvertedSnapshotForDrs",
        "drs:GetReplicationConfiguration",
        "drs:DescribeJobs",
        "drs:DescribeJobLogItems"
      ],
      "Resource": "*"
    },
    {
      "Sid": "DRSStagingAccountPolicyv22",
      "Effect": "Allow",
      "Action": [
        "ec2:ModifySnapshotAttribute"
      ],
      "Resource": "arn:aws:ec2:*:*:snapshot/*",
      "Condition": {
        "StringEquals": {
          "ec2:Add/userId": "${aws:SourceIdentity}"
        },
        "Null": {
          "aws:ResourceTag/AWSElasticDisasterRecoveryManaged": "false"
        }
      }
    },
    {
      "Sid": "DRSStagingAccountPolicyv23",
      "Effect": "Allow",
      "Action": "drs:IssueAgentCertificateForDrs",
      "Resource": [
        "arn:aws:drs:*:*:source-server/*"
      ]
    },
    {
      "Sid": "DRSStagingAccountPolicyv24",
      "Effect": "Allow",
      "Action": [
        "drs:CreateSourceServerForDrs",
        "drs:DescribeReplicationConfigurationTemplates"
      ],
      "Resource": "*"
    }
  ]
}
