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.

Cannot run pull command

See original GitHub issue

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

16.9.0

Amplify CLI Version

10.0.0

What operating system are you using?

Windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Amplify Categories

Not applicable

Amplify Commands

pull

Describe the bug

Cannot pull amplify to project. An error messgae is

Failed to get credentials: User: arn:aws:sts::11111111111111:assumed-role/ap-southeast-1_vwdG8XQs7_Full-access/CognitoIdentityCredentials is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::11111111111111:role/ap-southeast-1_vwdG8XQs7_Full-access

An error just happend a few hours ago. But ,yesterday, when I ran pull command everything is fine.

Expected behavior

Pull amplify backend to project without error

Reproduction steps

  1. Just run pull command in VS Code terminal

GraphQL schema(s)

# Put schemas below this line


Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
indiejosephcommented, Nov 2, 2022

In case anyone encountered this problem, it can be fixed with following steps:

  1. Copy the role arn arn:aws:iam::88888888888888:role/ap-southeast-1_clcRVJkLh_Full-access
  2. Go to IAM -> Roles -> find ap-southeast-1_clcRVJkLh_Full-access
  3. Insert below policy into trust relationship
 {
            "Sid": "SelfAssumeRolePolicy",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::88888888888888:role/ap-southeast-1_clcRVJkLh_Full-access"
            },
            "Action": "sts:AssumeRole"
}
1reaction
manuelcarriernunescommented, Nov 5, 2022

Disabling and then enabling Amplify Studio fixed the problem for me.

image

It may fix things for others too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run git pull command - Stack Overflow
I have to perform migration on server which is located on Client location. So I used to connect it using putty and run...
Read more >
Git - Pull Not Working - Unfuddle Support
There are several causes for a malfunctioning git-pull command. ... Doing this will allow you to simply run git pull and Git will...
Read more >
Troubleshooting errors with Docker commands when using ...
If you are running docker pull on an Amazon EC2 instance in a private subnet, verify that the subnet has a route to...
Read more >
How to fix Git Clone "Filename too long" Error in Windows?
Simply navigate to the project's home directory and find the ".git" folder and apply the command line to exclusively fix this project. Open...
Read more >
Error: failed to push some refs to – How to Fix in Git
To fix the error, go on and run following commands: git pull --rebase origin main git push -u origin main. If the first...
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