amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Unable to pull a backend env created by the amplify console (EPERM: operation not permitted)

Open lebull opened this issue 5 years ago • 5 comments

This is happening on Windows.

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the Amplify Console GitHub Issue Tracker

Describe the bug A clear and concise description of what the bug is.

Pulling env created by the amplify console results in a permissions error

+ @aws-amplify/[email protected]
added 45 packages from 20 contributors, updated 51 packages and moved 2 packages in 26.651s
PS C:\Users\me\Projects\proj> amplify pull --appId <app_id>--envName dev
Initializing new Amplify CLI version...
Done initializing new version.
Scanning for plugins...
Plugin scan successful
EPERM: operation not permitted, rename 'C:\Users\me\Projects\proj\amplify' -> 'C:\Users\me\Projects\proj\amplify-backup'

Amplify CLI Version You can use amplify -v to check the amplify cli version on your system

To Reproduce Steps to reproduce the behavior or terminal output if applicable

  • Create a backend env using the amplify console
  • Use the pull command provided to pull the backend env

Additional context Add any other context about the problem here.

I originally had this pointed to another amplify project in another branch, so maybe something wanky happened with the cli's config? But I'm reproducing this after creating a fresh clone on a different machine where there was never a reference to the other project.

lebull avatar Dec 10 '20 15:12 lebull

@lebull thanks for reporting the issue we're aware of this and it will be fixed in the next release.

attilah avatar Dec 10 '20 19:12 attilah

4.39 seemed to resolve this issue.

lebull avatar Dec 11 '20 17:12 lebull

@lebull Thanks for checking

ammarkarachi avatar Dec 11 '20 17:12 ammarkarachi

Im getting this issue on 4.39

`amplify pull

Pre-pull status:

Current Environment: staging

Category Resource name Operation Provider plugin
Api OperationCookies No Change awscloudformation

/ Fetching updates to backend environment: staging from the cloud.Could not initialize 'staging': EPERM: operation not permitted, stat 'C:\Users\Berbaroovez\Desktop\ReactProjects\cookiemanager\amplify\backend'`

berbaroovez avatar Dec 14 '20 03:12 berbaroovez

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

github-actions[bot] avatar May 25 '21 11:05 github-actions[bot]