2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Good question! I would check your Amplify build settings to see how you have set up your artifacts and the structure for that: https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html
The “Access Denied” error tells me that the folder is not initialized correctly.
répondu il y a 2 ans
0
Check S3 Bucket Permissions: You can ensure that the S3 bucket associated with your Amplify project has the appropriate permissions to allow public access or authenticated access to the PDF file.
- Navigate to the Amazon S3 console.
- Select your bucket.
- Go to the "Permissions" tab.
- Review the bucket policy and ensure it allows the necessary access. You might need to add a policy that allows
GetObject
permissions for public or authenticated users.
Here's an example of an S3 bucket policy allowing public read access:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::your-bucket-name/*" } ] }
répondu il y a 9 mois
Contenus pertinents
- demandé il y a 4 mois
- demandé il y a 6 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 7 mois
- AWS OFFICIELA mis à jour il y a 2 ans