{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "czServiceAccount01",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::${account_id_to_trust}:root"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "sts:ExternalId": "${external_id}"
        }
      }
    },
    {
      "Sid": "czVpcFlowLogs01",
      "Effect": "Allow",
      "Principal": {
        "Service": "vpc-flow-logs.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
