question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copying the wildrydes files from s3 fails with access denied

See original GitHub issue

Following the “build a serverless web app” tutorial, and hit two issues in the Copy the files from S3 step in Module 1 - Static Web Hosting with Continuous Deployment.

Firstly, the pre-requisites for the tutorial didn’t mention the need to install the aws cli, so I had to go and figure that out (more an annoyance than a blocker, as a quick Google for “aws cli” sorted that).

Then once the CLI is installed, running the aws s3 cp s3://wildrydes-us-east-1/WebApplication/1_StaticWebHosting/website ./ --recursive command as instructed results in this error:

fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

I assume the target S3 bucket is no longer publicly available…

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:9

github_iconTop GitHub Comments

8reactions
mtrebycommented, May 18, 2021

Hi @daiscog - I had the same problem. I resolved it by granting the IAM user that was doing the copy the AmazonS3ReadOnlyAccess policy - this gave the user permission to read from S3.

2reactions
ranaalisaeedcommented, Dec 16, 2021

Ok so the solution is a few things:

  1. For the IAM user, ensure you added the Access key ID and secret in your environment. You can check it on cat ~/.aws/credentials
  1. For the IAM user, ensure you have AmazonS3ReadOnlyAccess permission
Read more comments on GitHub >

github_iconTop Results From Across the Web

Access denied copying files using S3 CLI - Server Fault
Is there any way to 'describe-instances' for another AWS account from awscli? 1 · "Access Denied” error while creating Amazon S3 bucket even...
Read more >
Amazon S3 File Permissions, Access Denied when copied ...
I'm running into a problem now with all of the files where i am receiving Access Denied errors when I try to make...
Read more >
Resolve Access Denied error for ListObjectsV2 using S3 sync
I'm running the aws s3 sync command to copy objects to or from an Amazon Simple Storage Service (Amazon S3) bucket. However, I'm...
Read more >
S3 Bucket Access Denied
Copying the wildrydes files from s3 fails with access denied. For Target, choose the name of the bucket that you want to receive...
Read more >
S3 Bucket Access Denied - Bar Sereno
Getting error 3600 (access denied) when accessing a file in an S3 bucket. ... Copying the wildrydes files from s3 fails with access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found