Skip to content

Amplify Environment Pull Error #14185

Open
@kgmei

Description

@kgmei

How did you install the Amplify CLI?

npm

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

v22.14.0

Amplify CLI Version

13.0.1

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 manual changes made"

Describe the bug

When working with multiple Amplify environments on Windows 11, attempting to sequentially pull different environments using amplify pull works for the first environment but fails on the second pull within the same project directory when using VS Code's integrated PowerShell terminal.

Errors observed:

**EPERM: operation not permitted, symlink ...

EBUSY: resource busy or locked, unlink ...

This seems to be related to symlink creation and file locking under amplify-backup during the backup operation before switching environments.

Important observation:
Running the same flow inside Command Prompt (with Developer Mode enabled) works fine for both environments.**

Expected behavior

he expected behavior is:

Pull environment 1 successfully

Pull environment 2 successfully, replacing the previous backend state with the new one

Allow smooth merging and environment switching within the same project folder, without file lock, symlink, or permission errors — regardless of whether it’s inside VS Code terminal or Command Prompt

Reproduction steps

Reproduction flow
Environment:

OS: Windows 11

Amplify CLI: Latest version (Node.js environment)

VS Code integrated PowerShell terminal

Steps:

Ensure Developer Mode is enabled in Windows

Open VS Code

Open integrated terminal (PowerShell)

Navigate to project folder correctly:

Error messages:

EPERM: operation not permitted, symlink ...

EBUSY: resource busy or locked, unlink ...

Now, try the same two-pull flow using Command Prompt (Developer Mode enabled) — both pulls work fine.

Project Identifier

No response

Log output

EPERM: operation not permitted, symlink 'D:\Projects\myproject-dev\myproject\amplify\backend' -> 'D:\Projects\myproject-dev\myproject\amplify-backup\backend\node_modules\overrides-for-auth-resource'

EBUSY: resource busy or locked, unlink 'D:\Projects\myprojectv-dev\myproject\amplify-backup\backend\node_modules\rxjs\LICENSE.txt'

Command Prompt (Developer Mode enabled):
✅ Both amplify pull operations succeed.

Additional information

No response

Before submitting, please confirm:

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsIssues tied to running the CLI on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions