Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to new account #13744

Open
2 tasks done
fistofzen opened this issue Apr 28, 2024 · 6 comments
Open
2 tasks done

Migration to new account #13744

fistofzen opened this issue Apr 28, 2024 · 6 comments
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage platform-init Issues related to initializing a new Amplify project

Comments

@fistofzen
Copy link

How did you install the Amplify CLI?

yarn

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

v20.11.1

Amplify CLI Version

12.10.3

What operating system are you using?

Mac

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

No

Describe the bug

Hello
I followed the https://docs.amplify.aws/javascript/tools/cli/migration/cli-migrate-aws-account/
to migrate my app to the new aws account but I am getting error because apmlify tries to signin with the appid d22h1kgc6xq1y7 but it is not available in the new account.

Expected behavior

pushing the app to the new account

Reproduction steps

1. ampl

Project Identifier

No response

Log output

# Put your logs below this line


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.
@fistofzen fistofzen added the pending-triage Issue is pending triage label Apr 28, 2024
@ykethan
Copy link
Contributor

ykethan commented Apr 29, 2024

Hey @fistofzen, could you provide us the full error message printed on the terminal?
Does the project have a team-provider-info.json?
Tried reproducing the error message with and without a team-provider-info.json wile selecting a new profile created a new app.

@ykethan ykethan added pending-response Issue is pending response from the issue author platform-init Issues related to initializing a new Amplify project labels Apr 29, 2024
@fistofzen
Copy link
Author

I tried every way,
First I deleted the team-provider-info.json but still the same error. app id not found.
The system trying to find old app id in the new account but it not exists. And as a result login is not successful.

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Apr 29, 2024
@ykethan
Copy link
Contributor

ykethan commented Apr 30, 2024

@fistofzen tried reproing this issue with a new account and removing the team-provider-info.json then run amplify init selecting the new profile but did not observe any init failure.
Are you referring to the warning ⚠️ Failed to resolve AppId. Skipping parameter download.?
the warning should not effect the project creation but warns the user it unable to find an appID associated and created a new application on the console.
are you observing an other error messaging after this warning?

@ykethan ykethan added the pending-response Issue is pending response from the issue author label Apr 30, 2024
@fistofzen
Copy link
Author

fistofzen commented May 1, 2024

after apmlify init,
I am going like that.

Received error [Error: Command was killed with SIGSEGV (Segmentation fault): yarn --version] running command [yarn --version]

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label May 1, 2024
@fistofzen
Copy link
Author

ShellCommandExecutionError: Received error [Error: Command was killed with SIGSEGV (Segmentation fault): yarn --version] running command [yarn --version]
at execWithOutputAsString (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-cli-core/lib/utils/shell-utils.js:38:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getYarnPackageManager (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-cli-core/lib/utils/packageManager.js:131:36)
at async runPackageManagerInstall (/snapshot/amplify-cli/build/node_modules/amplify-nodejs-function-runtime-provider/lib/utils/legacyBuild.js:70:28)
at async installDependencies (/snapshot/amplify-cli/build/node_modules/amplify-nodejs-function-runtime-provider/lib/utils/legacyBuild.js:67:5)
at async Object.buildResource [as build] (/snapshot/amplify-cli/build/node_modules/amplify-nodejs-function-runtime-provider/lib/utils/legacyBuild.js:44:13)
at async buildFunction (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-function/lib/provider-utils/awscloudformation/utils/buildFunction.js:29:22)
at async prepareResource (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/push-resources.js:420:33)
at async prepareBuildableResources (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/push-resources.js:416:5)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/push-resources.js:177:5)
at async /snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/push-resources.js:137:16
at async Promise.all (index 0)
at async providersPush (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/push-resources.js:133:5)
at async AmplifyToolkit.pushResources (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/push-resources.js:107:13)
at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

Session Identifier: 335820ba-9e85-4be9-8e54-c08a8b701d7d

@ykethan
Copy link
Contributor

ykethan commented May 2, 2024

@fistofzen could you provide us the local yarn version being used. Could you trying using the yarn version 1.22.19 and retry the command.

@ykethan ykethan added the pending-response Issue is pending response from the issue author label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage platform-init Issues related to initializing a new Amplify project
Projects
None yet
Development

No branches or pull requests

2 participants