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...
Relevant content
asked a year ago
asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
