- Newest
- Most votes
- Most comments
The error message is saying that your IAM access key is either invalid (formatting issue, maybe?) or it isn't valid (it has been revoked from within the console). You can generate a new IAM access key in the console and then put it into your application.
Given that you've put the access key out in public, I'd be cancelling it anyway. While it's only one half of your credentials it's better to keep both parts (the access key and the secret access key) confidential.
Note that we discourage the use of long-lived credentials - if possible! It's much better security practice. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html
Why is Action "Action": "s3:*". Shouldn't it be s3:PutObject and s3:GetObject?
https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html
It did not help me
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
Thanks, but I created new IAM access keys in the console. It doesn't help.
I added info about Bucket policy in my question
This isn't an issue with the bucket policy - that would give you an "Access Denied" error.
Maby it is about Object Ownership in AWS? Or maby some cache in the AWS or the server. How can i check with which keys i use AWS through SDK PHP (some logs).
I deployed the site locally, the images began to upload successfully. It seems AWS stopped liking my server.