How to grant aws config write permission to a bucket

How can I modify the SourceAccountID to be my organzation ID since AWS Config does not support organization ID or organization unit based condition?I have alot of accounts and I do not want to write them all out individually.

  "Effect": "Allow",
  ""Principal": {
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::targetBucketName/[optional] prefix/AWSLogs/sourceAccountID-WithoutHyphens/Config/*",
"Condition": { 
  "StringEquals": { 
     "s3:x-amz-acl": "bucket-owner-full-control"

Hi thank you for your post! This is not a GitHub related post so you may find more help in more general forums like Stackoverflow.