I spent time learning about the policy concepts. I developed this which works, but it’s all wide open, and so needs considerable refinement. But it does allow you to get on and setup all the rest of the requirements for S3 storage for Discourse. A starting point that currently works, at least.
{
"Version": "2012-10-17",
"Id": "Policy1640915383804",
"Statement": [
{
"Sid": "Stmt1640915382266",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::xyzzy-file-uploads",
"arn:aws:s3:::xyzzy-file-uploads/*"
]
}
]
}