Access denied when adding image from S3 in custom content

I would like to store an image in S3 bucket and show it in Custom Content in Quicksight. I followed this video How do I allow Amazon QuickSight access to my S3 bucket when I have a deny policy? - YouTube and created a deny policy on bucket but allowed service role and myself the access. Then I allowed access to S3 bucket in Quicksight under Security & permissions. When I try to add the URL to custom content visual in Quicksight I get access denied error. Perhaps I need to modify the policy…but am totally stuck. Any help would be appreciated.

My policy looks like this:
{
“Id”: “Policy99999999999”,
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “Stmt99999999999”,
“Action”: “s3:",
“Effect”: “Deny”,
“Resource”: “arn:aws:s3:::my-quicksight-bucket”,
“Condition”: {
“StringNotLike”: {
“aws:userid”: [
"AAAAAAAAAAAAAAA:
”,
“BBBBBBBBBBB:mySSOlogin”
]
}
},
“Principal”: “*”
}
]
}

1 Like

“The IAM user policy must also contain an Allow statement for the S3 bucket”

Have you made sure that is the case ^?

That’s the only thing I can think of