-
Notifications
You must be signed in to change notification settings - Fork 820
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
Parameters: [unauthRoleName, authRoleName] must have values on amplify push function
#9484
Comments
I also have been dealing with this exact same issue. Fails with this same error on a few existing and unchanged REST APIs when trying to push a minor update on the GraphQL API Amplify CLI Version 7.6.8 |
Hey @MichaelPlan 👋 thanks for raising this! From the CloudFormation lines you posted I noticed this is failing for your API, is this a REST API by chance?
If so, was this project recently migrated from using an older version of the CLI? |
@josefaidt yes, the project was recently migrated. The only solution to fix it was to create a complete new project. But after some days working with the new version, I'm now getting this for hours: A deployment is in progress. when try to push anything. I pulled everything again and made some small changes, but nothing works anymore. In amplify studio I can see "Deployment completed". Do you have any solution for the problem? Is it possible to abort a deployment? |
Did you previously override cloudformation configuration directly? |
Hey @MichaelPlan 👋 to mitigate the parameters issue we should be able to safely remove those parameters, though ideally this should have been done for us. For the deployment issue, if you visit the CloudFormation console do you see a deployment in progress by chance? |
Closing due to inactivity. @MichaelPlan if you are still experiencing this issue please reply back to this thread and we can re-open to investigate further 🙂 |
Hey, I'm having similar issues. I am on version 7.6.21 and migrated to Transformer v2.
This is from a newly redeployed Stack as well. The only place I'm using these values as parameters is within the Geo resource, which was generated by Amplify. |
Hey @LucasKnudsen apologies for the delay! I was able to successfully reproduce this with the following steps on the latest version of the Amplify CLI (7.6.22):
Marking as a bug 🙂 |
amplify push function
Hello, I am experiencing the same bug when trying to push only function. I have the latest version of amplify (8.3.1). Any ideas? Thanks! |
It happens to me too but in my case I recreated the table that was linked to a given function. After that amplify function push started throwing those errors. Relinking the function to the table by amplify function update might solve it. |
Same, seeing this in CI/CD builds of a custom function. The logs say they patched the CLI to v 9.2.1: I'm not seeing the issue from local Edit 2 days later: the issue disappeared for me as mysteriously as it appeared. |
Seeing the issue as well. |
@edwardfoyle yes, I'm at 9.2.1. |
seeing the issue as well,
|
Had a similar issue. Here's my solution https://stackoverflow.com/a/73673509/11135757 |
It was a nightmare but I did the above and didn’t help me. On CI/CD it specifically says unAuthUserRole issue but on the react app it now says Resource not in StackUpdateComplete. Previously the above was followed by unAuthRole error |
Check if you see the identity pool linked in your "Authentication" section in Amplify Studio. Additionally, you can add StackUpdateComplete to your auth profile. |
I have a cognitive userpool linked. Any idea how I can add the stackUpdateComplete to the auth profile. Thank you for the response |
My question is does it show that you have an identity pool attached as well? This was the reason I was getting the error. I also had user pool linked but no identity pool was linked to it |
Sorry about that. I do not have any identity pool attached. Any steps to attach that would be really appreciated |
It's actually in that StackOverflow answer I linked above. I will update the answer with more details. |
Any update on this? Stuck and I can’t delete any db items from client because I can’t update API @bordernone did you have a lambda function in your setup? |
This might help: https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-integrating-user-pools-with-identity-pools.html Nope I didn't |
That might be the difference. The issue started happening when I added the function as the OP reported. I will try creating a completely new project without lambda function and try migrating the database But will try your suggestion again. Thank you kindly for the link @bordernone |
experiencing the same bug when attempting to push a new environment importing a cognito user pool...
|
I don’t want to jinx my self but I got past this. Unfortunately the solution isn’t pretty. @javabudd how did you create auth? |
I used the UI to attach an existing user pool, if I remove the auth and try again it works. |
No longer reproducible with v.10.5.1. PR fix: #10848 |
This issue is not been solved yet. |
issue is still there |
@javabudd how did you remove the auth? |
Removing the auth and re-adding didn’t really help me. The best bet for you
and probably the easy one is to create a new environment.
I initially deleted my project and started from scratch but later needed to
add another function and that broke my environment again. I tried creating
a new environment this time which was much easier rather than redoing the
whole thing and that worked.
…On Sun, Feb 5, 2023 at 11:01 AM Arnav Chowdhry ***@***.***> wrote:
@javabudd <https://github.com/javabudd> how did you remove the auth?
—
Reply to this email directly, view it on GitHub
<#9484 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2M7IEM4VRV5LYC747AVLJDWV43MZANCNFSM5LUWRGSA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
yeah you're right a new environment fixed it... unfortunately my app is in production and the new environment doesn't keep the logins so that is an extremely unfortunate bug. I appreciate your help though. |
Hey folks 👋 if you are experiencing this error when attempting to push updates to your Amplify project using the latest version of the CLI (10.7.2 at the time of writing), please file a separate bug report |
same issue on Amplify push (all). Using the latest CLI. |
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.18.2
Amplify CLI Version
7.6.7
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
function
Amplify Commands
add, push
Describe the bug
It's not possible to push a new lambda function with CLI.
UPDATE_FAILED api AWS::CloudFormation::Stack Mon Jan 10 2022 22:32:05 GMT+0100 (Central European Standard Time) Parameters: [unauthRoleName, authRoleName] must have values
CREATE_FAILED functiontest AWS::CloudFormation::Stack Mon Jan 10 2022 22:32:06 GMT+0100 (Central European Standard Time) Resource creation cancelled
UPDATE_FAILED AuthTriggerCustomLambdaStack AWS::CloudFormation::Stack Mon Jan 10 2022 22:32:06 GMT+0100 (Central European Standard Time) Resource update cancelled
Expected behavior
UPDATE_COMPLETE
Reproduction steps
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: