Hello :wave: I am facing similar issue that was re...
# ask-metaflow
h
Hello šŸ‘‹ I am facing similar issue that was reported by @wonderful-king-87503 some time ago. What was the solution for getting this tutorial working?
c
I tried querying it, but get a AccessDenied error on the bucket when I try to view the bucket using
aws s3 ls <s3://fast-ai-nlp/>
h
I can see files when I run locally this command:
aws s3 ls <s3://fast-ai-nlp>
So, my issue seems to be related to role called metaflow-BatchS3TaskRole. After I created this additional policy for this role, I got rid of error:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::fast-ai-nlp",
"arn:aws:s3:::fast-ai-nlp/*"
]
}
]
}
However, I would need some assistance in understanding the reason why this change helped me.
s
if originally your role was scoped to just read from a specific bucket, then you would need to either add this additional policy or change the role to read/list any/all buckets.
h
Thanks for the reply. I assumed that following tutorials step by step and setting up environment using Cloudformation approach would take care that.
f
I ran into the same issue recently and @high-autumn-66899’s suggestion to create additional policy worked for me.
But out of curiosity @square-wire-39606 which role would you change to read/list any/all buckets?