Cannot Deploy or Push to Amplify: `Parameters: [hostedUI] must have values`
Before opening, please confirm:
- [X] I have checked to see if my question is addressed in the FAQ.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
arn:aws:amplify:us-east-1:044193563414:apps/dxb789pifky28
Region
us-east-1
Amplify Hosting feature
Backend builds
Describe the bug
I cannot deploy nor push (i.e. use amplify push) to my environment. It seems like the associated Cloudformation deployment fails because of an auth setting. Attached is the latest log. It appears it wants a hostedUI parameter, but I'm not sure how to solve.
log (2).txt
Expected behavior
Push being successful and deployment deploying.
Reproduction steps
- Navigate to https://us-east-1.console.aws.amazon.com/amplify/home?region=us-east-1#/dxb789pifky28/main/7?step=BUILD
- Click "Redeploy this Version".
Build Settings
No response
Additional information
Probably related, this is what I receive when I run an amplify push locally:
Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS amplify-devflare-staging-201140 AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:39 GMT-0500 (Central Daylight Time) User Initiated
UPDATE_IN_PROGRESS functiongetQuickbooksCode AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
CREATE_IN_PROGRESS functiondevflareutilities AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS functiongetUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetQuickbooksCompany AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiondevflarepostgresClient AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functionoauth AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functionupdateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS functiongetOrganizationPnlReport AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functioncreateUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetQuickbooksTokens AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS authdevflare AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functioncreateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksCode AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:45 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functionoauth AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksCompany AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
CREATE_IN_PROGRESS functiondevflareutilities AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time) Resource creation Initiated
UPDATE_COMPLETE functionupdateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksTokens AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
UPDATE_FAILED authdevflare AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time) Parameters: [hostedUI] must have values
UPDATE_COMPLETE functioncreateUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetOrganizationPnlReport AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functioncreateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time)
CREATE_FAILED functiondevflareutilities AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:47 GMT-0500 (Central Daylight Time) Resource creation cancelled
UPDATE_FAILED functiongetOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:47 GMT-0500 (Central Daylight Time) Resource update cancelled
UPDATE_FAILED functiondevflarepostgresClient AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:47 GMT-0500 (Central Daylight Time) Resource update cancelled
UPDATE_ROLLBACK_IN_PROGRESS amplify-devflare-staging-201140 AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:48 GMT-0500 (Central Daylight Time) The following resource(s) failed to create: [functiondevflareutilities]. The following resource(s) failed to update: [functiongetOrganization, functiondevflarepostgresClient, authdevflare].
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS amplify-devflare-staging-201140-functiondevflarepostgresClient-1S3S12MJJQ1IO AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time) User Initiated
UPDATE_ROLLBACK_IN_PROGRESS amplify-devflare-staging-201140-functiondevflarepostgresClient-1S3S12MJJQ1IO AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:47 GMT-0500 (Central Daylight Time) Initiated by parent stack
⠹ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS amplify-devflare-staging-201140-functiondevflareutilities-M3JBP48DET20 AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:46 GMT-0500 (Central Daylight Time) User Initiated
⠼ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS LambdaLayerVersion213c5d72 AWS::Lambda::LayerVersion Fri Jul 22 2022 14:06:51 GMT-0500 (Central Daylight Time)
⠇ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS functiondevflarepostgresClient AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetQuickbooksCompany AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetQuickbooksCode AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functioncreateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE authdevflare AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functionupdateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetQuickbooksTokens AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:57 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functionoauth AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functioncreateUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksCompany AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksCode AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functioncreateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksTokens AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functiongetOrganizationPnlReport AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functionoauth AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functionupdateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functioncreateUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetOrganizationPnlReport AWS::CloudFormation::Stack Fri Jul 22 2022 14:06:58 GMT-0500 (Central Daylight Time)
⠼ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS LambdaLayerVersion213c5d72 AWS::Lambda::LayerVersion Fri Jul 22 2022 14:06:59 GMT-0500 (Central Daylight Time) Resource creation Initiated
CREATE_COMPLETE LambdaLayerVersion213c5d72 AWS::Lambda::LayerVersion Fri Jul 22 2022 14:06:59 GMT-0500 (Central Daylight Time)
⠏ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS LambdaLayerPermissionPrivate213c5d72 AWS::Lambda::LayerVersionPermission Fri Jul 22 2022 14:07:01 GMT-0500 (Central Daylight Time)
CREATE_IN_PROGRESS LambdaLayerPermissionPrivate213c5d72 AWS::Lambda::LayerVersionPermission Fri Jul 22 2022 14:07:03 GMT-0500 (Central Daylight Time) Resource creation Initiated
CREATE_COMPLETE LambdaLayerPermissionPrivate213c5d72 AWS::Lambda::LayerVersionPermission Fri Jul 22 2022 14:07:03 GMT-0500 (Central Daylight Time)
CREATE_COMPLETE amplify-devflare-staging-201140-functiondevflareutilities-M3JBP48DET20 AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:05 GMT-0500 (Central Daylight Time)
⠸ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-devflare-staging-201140-functiondevflarepostgresClient-1S3S12MJJQ1IO AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:29 GMT-0500 (Central Daylight Time)
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE functiondevflarepostgresClient AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:32 GMT-0500 (Central Daylight Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-devflare-staging-201140 AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:33 GMT-0500 (Central Daylight Time)
DELETE_IN_PROGRESS functiondevflareutilities AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:34 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:34 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE authdevflare AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
⠦ Updating resources in the cloud. This may take a few minutes...
DELETE_IN_PROGRESS amplify-devflare-staging-201140-functiondevflareutilities-M3JBP48DET20 AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time) User Initiated
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE functionoauth AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksTokens AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksCompany AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functioncreateUser AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetQuickbooksCode AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functioncreateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functiongetOrganizationPnlReport AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE functionupdateOrganization AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:35 GMT-0500 (Central Daylight Time)
⠇ Updating resources in the cloud. This may take a few minutes...
DELETE_IN_PROGRESS LambdaLayerPermissionPrivate213c5d72 AWS::Lambda::LayerVersionPermission Fri Jul 22 2022 14:07:39 GMT-0500 (Central Daylight Time)
⠸ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE LambdaLayerPermissionPrivate213c5d72 AWS::Lambda::LayerVersionPermission Fri Jul 22 2022 14:07:40 GMT-0500 (Central Daylight Time)
⠙ Updating resources in the cloud. This may take a few minutes...
DELETE_IN_PROGRESS LambdaLayerVersion213c5d72 AWS::Lambda::LayerVersion Fri Jul 22 2022 14:07:41 GMT-0500 (Central Daylight Time)
DELETE_COMPLETE LambdaLayerVersion213c5d72 AWS::Lambda::LayerVersion Fri Jul 22 2022 14:07:42 GMT-0500 (Central Daylight Time)
DELETE_COMPLETE amplify-devflare-staging-201140-functiondevflareutilities-M3JBP48DET20 AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:43 GMT-0500 (Central Daylight Time)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE functiondevflarepostgresClient AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:45 GMT-0500 (Central Daylight Time)
DELETE_COMPLETE functiondevflareutilities AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:46 GMT-0500 (Central Daylight Time)
UPDATE_ROLLBACK_COMPLETE amplify-devflare-staging-201140 AWS::CloudFormation::Stack Fri Jul 22 2022 14:07:46 GMT-0500 (Central Daylight Time)
⠴ Updating resources in the cloud. This may take a few minutes...
Following resources failed
✖ An error occurred when pushing the resources to the cloud
🛑 An error occurred during the push operation: /
Resource is not in the state stackUpdateComplete
? An unexpected error has occurred, opt in to send an e
@Joshua-FlareFS Not sure if this will help you but every once in a while I run into a similar auth error even though nothing's changed. what fixes it is running
amplify auth update
and then walking through all the configuration steps without modifying anything. Worth noting that I've only configured 3rd party auth with Facebook so my steps are auth update -> walkthrough all configs -> add/edit signin and signout redirect URIs without changing anything.
Hi @Joshua-FlareFS please let us know if the above suggestion works for you.
Sorry, thought replying to the email worked, but it looks like it didn't. This is what I responded:
Thanks for the suggestion. Running it didn’t work ☹. I received the same errors. Grasping for straws, I tried simply removing auth (amplify remove auth) which allowed me to be able to push again, but anytime I try to deploy via the console, I’m getting an error message:
Cannot push Amplify environment "staging" due to missing Lambda function environment variable values. Rerun 'amplify push' without '--yes' to fix. - Function getQuickbooksCode is missing values for environment variables: REDIRECT_URL, QUICKBOOKS_CLIENT_ID, ENVIRONMENT.
I’ve verified that these variables are set both locally when I push using
amplify pushand in the Lambda function via the console when I check the environment variables for this function. Ultimately, I’m still not in a deployable state unfortunately.
I ended up just created a new Amplify App and starting to copy all the resources over. AWS support was unfortunately able to help me get this app in a working state.
Related, do you have any tips from moving functions from one Amplify app to another easily?
Thanks for the suggestion. Running it didn’t work ☹. I received the same errors. Grasping for straws, I tried simply removing auth (amplify remove auth) which allowed me to be able to push again, but anytime I try to deploy via the console, I’m getting an error message:
Cannot push Amplify environment "staging" due to missing Lambda function environment variable values. Rerun 'amplify push' without '--yes' to fix. - Function getQuickbooksCode is missing values for environment variables: REDIRECT_URL, QUICKBOOKS_CLIENT_ID, ENVIRONMENT.
I’ve verified that these variables are set both locally when I push using amplify push and in the Lambda function via the console when I check the environment variables for this function.
Ultimately, I’m still not in a deployable state unfortunately.
From: Anguel @.>
Date: Sunday, July 24, 2022 at 6:34 AM
To: aws-amplify/amplify-hosting @.>
Cc: Joshua A.L. Harrison @.>, Mention @.>
Subject: Re: [aws-amplify/amplify-hosting] Cannot Deploy or Push to Amplify: Parameters: [hostedUI] must have values (Issue #2882)
@Joshua-FlareFShttps://github.com/Joshua-FlareFS Not sure if this will help you but every once in a while I run into a similar auth error even though nothing's changed. what fixes it is running
amplify auth update
and then walking through all the configuration steps without modifying anything. Worth noting that I've only configured 3rd party auth with Facebook so my steps are auth update -> walkthrough all configs -> add/edit signin and signout redirect URIs without changing anything.
— Reply to this email directly, view it on GitHubhttps://github.com/aws-amplify/amplify-hosting/issues/2882#issuecomment-1193299190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZFA2HBXMKFU2IKHGL3FMK3VVUS43ANCNFSM54MQBIHQ. You are receiving this because you were mentioned.Message ID: @.***>