-
Notifications
You must be signed in to change notification settings - Fork 815
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
unable to initialize project with auth from git, missing auth/.../build/parameters.json
#9508
Comments
+1 Having the same problem. Same service, auth. Edit: This worked for me:
Seems to provision the correct resources. 3 and 4 should happen automatically if you push the code into your git repository, according to docs. However I have not tested that. |
Getting the exact same bug. Unacceptable. Our preview builds don't work because of this. The workaround didn't work either, nor do I see how it should help. I already pulled the environment and pushed whatever updates it had to the branch I'm building an environment from. |
Same issue here. Our entire auth stack is gone. |
Build a preview environment with the latest major version of the cli and it should fail when using a social auth provider (e.g., Google). I finally managed to work around it today by tapping into the Amplify config before it starts creating the environment and removing any social providers, so it skips the problem altogether. I should say this pipeline used to work fine with a much older version of the cli. However, since the sabotage in |
Is there a recommended fix for this? |
Same -- does anyone from AWS ever respond?
|
I have the same issue here? Any updates?? |
This is fixed in 8.0.1 @may215 |
I'm having this issue on the CI, wonder how to deal with this if the build is something that runs on the CI. 🤔 |
Just FYI @josefaidt if worth something, I had this problem with amplify CLI 10.3.0, I try to update the auth resource but it didn't work so I went to build settings and change to amplify 10.2.3 and it worked, perhaps this latest version is introducing an issue.
|
Thanks, this worked. But would really like to know why this happened with this newer version of amplify cli. |
I have the same error message with parameter.json while trying to initialise amplify environment, once I downgrade to 10.2.3 it is fixed I am keen to know why this happened in the latest amplify cli version(10.3.0) and |
Hey folks 👋 I was able to reproduce this issue using the following steps:
I've reopened this issue to track with 10.3.0 As a workaround, you can manually create a cd amplify/backend/auth/<resource-name>/ && mkdir build && echo '{}' > build/parameters.json && cd - |
Revisiting this, I'm going to re-close in favor of tracking the new active bug as a regression #11211 |
Before opening, please confirm:
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
16.13.1
Amplify CLI Version
7.6.8
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 manual changes made
Amplify Categories
auth
Amplify Commands
init
Describe the bug
Unable to initialize new environment from an Amplify project after freshly cloning from git due to missing
parameters.json
in the auth resource'sbuild/
directory. As a workaround, we can runamplify build
to generate the missing file and allow us to initialize an environment.Note: we are also unable to use the
--app
parameter ofinit
to initialize a project from git:amplify init --app git@github.com:josefaidt/missingauth.git
Expected behavior
New or existing environment is initialized
Reproduction steps
amplify init -y
amplify add auth
> choose defaults with usernameamplify push -y
mkdir ../missingauthtmp; cd ../missingauthtmp
git clone git@github.com:josefaidt/missingauth.git
amplify init
> create new environmentWorkaround
amplify build
amplify init
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: