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

Amplify Configure Wizard Failed

Open tchowdhury opened this issue 1 year ago • 7 comments

How did you install the Amplify CLI?

npm

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

v20.11.0

Amplify CLI Version

12.10.1

What operating system are you using?

Windows 10 Pro

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

No

Describe the bug

I'm following the step outline in https://docs.amplify.aws/javascript/start/getting-started/installation/ to configure amplify using amplify-configure wizard. Follow the steps exactly and at the end getting an error "EPERM: operation not permitted, open 'C:\Users\TAPAJOYTI.aws\credentials'" .. attached the error screenshot amplify_configure_error

Expected behavior

As par documentation the configuration is successful "Successfully set up the new user"

Reproduction steps

run the command amply configure number of times and it shows the same error everytime

Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • [X] I have removed any sensitive information from my code snippets and submission.

tchowdhury avatar Jan 25 '24 10:01 tchowdhury

Hey @tchowdhury, Thanks for reaching out. Does this error also occur if you run the terminal with Admin access?

ykethan avatar Jan 25 '24 22:01 ykethan

Yes, I've open the terminal with run as admin option, still the same issue. Is there anyway I can manually add profile in the configuration file under .aws folder? If yes , is there any sample available so hat I can set up manually or alternatively, can I use my default aws profile (which has admin rights) to continue with amplify?

tchowdhury avatar Jan 26 '24 10:01 tchowdhury

Hey @tchowdhury, could try setting the profile using AWS CLI aws configure or manually adding them. https://docs.aws.amazon.com/cli/latest/userguide/welcome-examples.html You should be to able to use the profile with admin permissions on amplify init but to follow best practises I would suggest using a profile with scoped down permissions.

ykethan avatar Jan 26 '24 19:01 ykethan

Hey @tchowdhury did @ykethan 's note help resolve your issue?

josefaidt avatar Feb 02 '24 17:02 josefaidt

No, it doesn't. Anyhow I'm using my AWS admin profile. Quite disappointed , with the amplify documentation, steps/screenshots documented doesn't work and no alternatives have been documented either.

tchowdhury avatar Feb 02 '24 21:02 tchowdhury

Hey @tchowdhury sorry to hear of the rough experience. Looking at the error again this, was node or the CLI installed with sudo/admin? If you run which amplify or npm bin -g what is the output? We've seen similar errors where the CLI is unable to write to a logfile in the $HOME directory

josefaidt avatar Feb 02 '24 22:02 josefaidt

Hey @tchowdhury, are you still experience this issue?

ykethan avatar Feb 16 '24 23:02 ykethan

Closing the issue due to inactivity. Do reach out to us if you require any assistance.

ykethan avatar May 03 '24 15:05 ykethan

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar May 03 '24 15:05 github-actions[bot]