aws-amplify / aws-amplify/amplify-hosting

Cannot Deploy or Push to Amplify: `Parameters: [hostedUI] must have values`

Open
#2,882 4 comments 0 reactions 0 assignees View on GitHub
backend-builds bug
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-hosting/blob/master/CONTRIBUTING.md).
- [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](https://github.com/aws-amplify/amplify-hosting/files/9170072/log.2.txt)

### Expected behavior

Push being successful and deployment deploying.

### Reproduction steps

1. Navigate to https://us-east-1.console.aws.amazon.com/amplify/home?region=us-east-1#/dxb789pifky28/main/7?step=BUILD
2. 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
```

Contributor guide

Open the contributing guide

Research direction

Start with the attached log and the CloudFormation failure for the authdevflare resource, then compare it with the local `amplify push` output showing the missing hostedUI parameter. Reproduce the failure through the Amplify console or local push; done means backend deployment and push complete without the hostedUI validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
authentication, cloud, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.