N
N
Nubbb2021-02-08 12:30:20
Amazon Web Services
Nubbb, 2021-02-08 12:30:20

How to solve the problem with access denied in s3 amazon?

How to configure access to view images for all users?

if you try to knock

https://florachaing-ru.s3.eu-north-1.amazonaws.com/shops/2/clients/1de7e82ec6c4ef96472f4d2f7c8e41ba.jpeg

issues
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>21E0167572B6E56E</RequestId>
<HostId>2kdjr7LFuMjhBRJd43EmPreEW3mROi4opteaFRg1q6wiyh2yMs/PQxDWXyVIYd14Q2ANJoI7GEk=</HostId>
</Error>

Laravel project and download, deletion proceeds without problems, but does not show in the browser

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2021-02-08
@Nubbb

Buckets > BUCKET_NAME > Permissions > Bucket policy > Edit

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::BUCKET_NAME/*"
        }
    ]
}

K
KaPnaTa4Ka, 2021-02-08
@KaPnaTa4Ka

It is advisable to give your IAM role that you use to gain access to the account.
Permissions to view the cart. You can make an attachment policy or in json.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question