1 Answer
- Newest
- Most votes
- Most comments
1
As I found the reason for the issue, let's post it here in case someone else has the same issue.
The source of the problem is in the auth file, this little line:
groups: ["admin"],
As my user was in the admin
group, the role used to access S3, was not the Authenticated
one, but the admin _group
one and as the storage policy did not included any rights for this group, the response was a 403
Updating the storage definition to
export const storage = defineStorage({
name: "[...]",
access: (allow) => ({
"public/*": [
allow.guest.to(["read", "write"]),
allow.authenticated.to(["read", "write", "delete"]),
allow.groups(["admin"]).to(["read", "write", "delete"]),
]
}),
});
Fixed the issue...
answered 14 days ago
Relevant content
- asked 6 months ago
- asked 9 days ago
- asked 3 months ago
- Accepted Answerasked 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago