-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credentials should not be empty. error on Amplify storage function #12945
Comments
@FlyingTurkman are you utilizing the documentation here? Does the application have auth resource configured? transferring to Amplify JS repository for further assistance. |
Yes I did but not worked. |
Hi @FlyingTurkman is this issue happening locally or after you deploy to hosting? |
@nadetastic I figure it out. Problem was about security policy. |
Can you tell me more about that @FlyingTurkman ? What about security policy ? I have the same problem |
I edit secure policy on permissions for each service like that for example at s3 storage. {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::<IAM_Number>:user/<IAM_Username>"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::<S3_Storage_Bucket_Name>"
}
]
} |
Whats the IAM_username ? I have a userool and I want to allow all my user in the userpool to upload their profile picture |
https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html You can allow upload files for auth users with security policies. There is example about your situation. https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html |
Which Specific Feature is your question related to?
Amplify
Question
I am newbie for aws. I am trying to learn deploy an app in amplify with Nexj.js 15. I did everything like on docs but when I am trying to uploadData giving an error "Credentials should not be empty."
The text was updated successfully, but these errors were encountered: