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.

Access Denied When Attempting to Deploy

See original GitHub issue
$ aws s3 cp yarn.lock s3://mybucket
upload: ./yarn.lock to s3://mybucket/yarn.lock
$ npm run deploy

> mysite@0.1.0 deploy /mysite
> gatsby-plugin-s3 deploy


    Please review the following: (pass -y next time to skip this)

    Deploying to bucket: mybucket
    In region: us-east-2
    Gatsby will: UPDATE (any existing website configuration will be overwritten!)

? OK? Yes
✖ Upload failure for object chunk-map.json
  AccessDenied: Access Denied
...
...
$

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:26 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
cesargdmcommented, Jun 20, 2019

For anyone looking for the specific set of rules, here they are:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:ListBucket",
                "s3:DeleteObject",
                "s3:GetBucketLocation",
                "s3:PutBucketWebsite"
            ],
            "Resource": [
                "arn:aws:s3:::my-bucket",
                "arn:aws:s3:::my-bucket/*"
            ]
        }
    ]
}
4reactions
antklimcommented, Apr 4, 2020

Hi @JoshuaWalsh,

Thanks for your advice on how to solve deployment issues. I think it worth mentioning acl config option in README.md.

Also, it’s worth mentioning that every time you update gatsby-config.js you need rebuild bundle with the command gatsby build. Deploy plugin works with gatsby .cache which keeps configuration and it’s updated when you build gatsby project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bamboo throws 'Access denied' when attempting to deploy
When attempting to deploy a release, 'Access denied Sorry, you have insufficient permissions to view the page' is seen in the browser.
Read more >
Software Installation Failure - Access denied to Deploy Software
Cause. You may encounter the "Access is Denied" error during Software Installation due to one or more of the following reasons: The file...
Read more >
How do I resolve Access Denied error when trying to deploy ...
I tried building and deploying in Kudu with no luck either. Just as a sanity check I also made a brand new echobot...
Read more >
Access Denied Error When Deploying to cRIO - NI - Support
"Access Denied: The target is locked for a deployment operation by another process such as a VI or NI Distributed System Manager. Ensure...
Read more >
Access Denied when try to use Web deploy - Stack Overflow
On both I've installed Web Deploy 3 and the service Web Deployment Agent Service is running on both machines. I have the service...
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