amplify-cli: [secretsPathAmplifyAppId] must have values error on 2nd or later deployments

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • 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.

How did you install the Amplify CLI?

npm

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

v16.13.0

Amplify CLI Version

9.1.0

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

hosting

Amplify Commands

Not applicable

Describe the bug

I am using CI/CD connected to my GitHub repo. I have one of my branches (dev) connected and the deployment is working correctly every time.

I have connected a second branch (demo) and the initial creation and deployment worked correctly.

I then did a merge to the demo branch from the dev branch. The build phase failed with the error

[secretsPathAmplifyAppId] must have values

I have manually checked the following from the initial deployment of the demo branch:

  • The lambda function has the correct environment variable path for the key in AWS Systems Manager parameters store
  • AWS Systems Manager parameters store has the secret key for the demo environment
  • secretsPathAmplifyAppId is included in the team-provider-info.json file and has the correct value

I have checked for original issues regarding this issue and I have found #8513 and #9667, but these both seem to be on the first deploy, whereas this problem when using CI/CD appears to happen only on subsequent deployments.

Expected behavior

Projects using CI/CD hosting should deploy more than once.

Reproduction steps

  1. Create a project using CI/CD hosting
  2. Connect the project to the GitHub repo
  3. Connect a second branch in the GitHub repo to another hosting env
  4. Wait for initial deployment to complete
  5. Make any change to the second branch in the GitHub repo
  6. See the error [secretsPathAmplifyAppId] must have values in build log

GraphQL schema(s)

Not applicable

Project Identifier

Project Identifier: 0a2c62eccf8d3ac5d53ed152c8cb193b

Log output

2022-07-15T07:17:05.518Z [INFO]: # Cloning repository: git@github.com:benjeater/melcaas.git
2022-07-15T07:17:09.968Z [INFO]: Cloning into 'melcaas'...
2022-07-15T07:17:10.078Z [INFO]: # Switching to commit: 038dccf4c0d7832f0f4f21313ea04f15224a4cbc
2022-07-15T07:17:10.348Z [INFO]: Note: switching to '038dccf4c0d7832f0f4f21313ea04f15224a4cbc'.
                                 You are in 'detached HEAD' state. You can look around, make experimental
                                 changes and commit them, and you can discard any commits you make in this
                                 state without impacting any branches by switching back to a branch.
                                 If you want to create a new branch to retain commits you create, you may
                                 do so (now or later) by using -c with the switch command. Example:
                                 git switch -c <new-branch-name>
                                 Or undo this operation with:
                                 git switch -
                                 Turn off this advice by setting config variable advice.detachedHead to false
                                 HEAD is now at 038dccf Test
2022-07-15T07:17:10.397Z [INFO]: Successfully cleaned up Git credentials
2022-07-15T07:17:10.398Z [INFO]: # Checking for Git submodules at: /codebuild/output/src771248605/src/melcaas/.gitmodules
2022-07-15T07:17:10.430Z [INFO]: # Retrieving environment cache...
2022-07-15T07:17:10.861Z [INFO]: # Retrieved environment cache
2022-07-15T07:17:10.861Z [INFO]: ---- Setting Up SSM Secrets ----
2022-07-15T07:17:10.861Z [INFO]: SSM params {"Path":"/amplify/doocypzu2klhi/newenv/","WithDecryption":true}
2022-07-15T07:17:20.116Z [INFO]: # Patching NPM package '@aws-amplify/cli' from 7.6.14 to 9.1.0...
2022-07-15T07:17:20.906Z [INFO]: # Patching NPM package '@aws-amplify/cli' from 7.6.14 to 9.1.0...
2022-07-15T07:18:45.959Z [INFO]: # Done patching NPM package '@aws-amplify/cli' to version 9.1.0
2022-07-15T07:18:53.108Z [INFO]: # Done patching NPM package '@aws-amplify/cli' to version 9.1.0
2022-07-15T07:18:53.189Z [INFO]: # Retrieving cache...
2022-07-15T07:18:57.408Z [INFO]: # Extracting cache...
2022-07-15T07:19:02.654Z [INFO]: # Extraction completed
2022-07-15T07:19:06.085Z [INFO]: ## Starting Backend Build
                                 # Starting phase: build
2022-07-15T07:19:08.030Z [INFO]: Amplify AppID found: doocypzu2klhi. Amplify App name is: melcaas
2022-07-15T07:19:08.071Z [INFO]: Backend environment newenv found in Amplify Console app: melcaas
2022-07-15T07:19:09.683Z [WARNING]: - Fetching updates to backend environment: newenv from the cloud.
2022-07-15T07:19:11.361Z [INFO]: Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
2022-07-15T07:19:11.361Z [INFO]: Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
2022-07-15T07:19:11.361Z [WARNING]: - Building resource auth/melcaasAuth
2022-07-15T07:19:11.475Z [WARNING]: - Building resource api/melcaasGraphQLAPI
2022-07-15T07:19:13.605Z [INFO]: ✅ GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src771248605/src/melcaas/amplify/backend/api/melcaasGraphQLAPI/schema.graphql or place .graphql files in a directory at /codebuild/output/src771248605/src/melcaas/amplify/backend/api/melcaasGraphQLAPI/schema
2022-07-15T07:19:13.607Z [INFO]: Overrides functionality is not implemented for this category
2022-07-15T07:19:13.607Z [WARNING]: - Building resource storage/melcaasStorage
2022-07-15T07:19:13.644Z [WARNING]: - Building resource custom/melcaasErrorNotification
2022-07-15T07:19:13.645Z [WARNING]: - Building custom resources
2022-07-15T07:19:25.495Z [WARNING]: ✔ Successfully pulled backend environment newenv from the cloud.
2022-07-15T07:19:25.791Z [INFO]: ✅
2022-07-15T07:19:28.125Z [INFO]: Note: It is recommended to run this command from the root of your app directory
2022-07-15T07:19:28.965Z [WARNING]: - Initializing your environment: newenv
2022-07-15T07:19:30.487Z [INFO]: Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
2022-07-15T07:19:30.487Z [INFO]: Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
2022-07-15T07:19:30.487Z [WARNING]: - Building resource auth/melcaasAuth
2022-07-15T07:19:30.626Z [WARNING]: - Building resource api/melcaasGraphQLAPI
2022-07-15T07:19:33.000Z [INFO]: ✅ GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src771248605/src/melcaas/amplify/backend/api/melcaasGraphQLAPI/schema.graphql or place .graphql files in a directory at /codebuild/output/src771248605/src/melcaas/amplify/backend/api/melcaasGraphQLAPI/schema
2022-07-15T07:19:33.001Z [INFO]: Overrides functionality is not implemented for this category
2022-07-15T07:19:33.002Z [WARNING]: - Building resource storage/melcaasStorage
2022-07-15T07:19:33.036Z [WARNING]: - Building resource custom/melcaasErrorNotification
2022-07-15T07:19:33.037Z [WARNING]: - Building custom resources
2022-07-15T07:19:38.739Z [WARNING]: ✔ Initialized provider successfully.
2022-07-15T07:21:05.972Z [WARNING]: - Uploading files...
2022-07-15T07:21:06.602Z [WARNING]: - Uploading files...
2022-07-15T07:21:06.726Z [WARNING]: - Uploading files...
2022-07-15T07:21:07.550Z [WARNING]: - Uploading files...
2022-07-15T07:21:08.733Z [WARNING]: - Uploading files...
2022-07-15T07:21:09.016Z [WARNING]: - Uploading files...
2022-07-15T07:21:09.240Z [WARNING]: - Uploading files...
2022-07-15T07:21:09.740Z [WARNING]: - Uploading files...
2022-07-15T07:21:10.675Z [WARNING]: - Uploading files...
2022-07-15T07:21:16.015Z [WARNING]: - Uploading files...
2022-07-15T07:21:16.497Z [WARNING]: - Uploading files...
2022-07-15T07:21:17.889Z [WARNING]: - Uploading files...
2022-07-15T07:21:18.171Z [INFO]: Overrides functionality is not implemented for this category
2022-07-15T07:21:18.172Z [INFO]: Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
                                 Overrides functionality is not implemented for this category
2022-07-15T07:21:18.172Z [WARNING]: - Building resource auth/melcaasAuth
2022-07-15T07:21:18.260Z [WARNING]: - Building resource api/melcaasGraphQLAPI
2022-07-15T07:21:20.327Z [INFO]: ✅ GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src771248605/src/melcaas/amplify/backend/api/melcaasGraphQLAPI/schema.graphql or place .graphql files in a directory at /codebuild/output/src771248605/src/melcaas/amplify/backend/api/melcaasGraphQLAPI/schema
2022-07-15T07:21:20.329Z [WARNING]: - Building resource storage/melcaasStorage
2022-07-15T07:21:20.371Z [WARNING]: - Building resource custom/melcaasErrorNotification
2022-07-15T07:21:20.372Z [WARNING]: - Building custom resources
2022-07-15T07:21:25.325Z [WARNING]: - Uploading files...
2022-07-15T07:21:26.554Z [WARNING]: - Updating resources in the cloud. This may take a few minutes...
2022-07-15T07:21:32.953Z [INFO]: 
2022-07-15T07:21:32.954Z [INFO]: UPDATE_IN_PROGRESS amplify-melcaas-newenv-65719 AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:27 GMT+0000 (Coordinated Universal Time) User Initiated
2022-07-15T07:21:37.896Z [INFO]: 
2022-07-15T07:21:37.898Z [INFO]: UPDATE_IN_PROGRESS functionmelcaasAuthCustomMessage    AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:33 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasAuthPostConfirmation AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:33 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS custommelcaasErrorNotification      AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:33 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS authmelcaasAuth                     AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:33 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthCustomMessage    AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:34 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthPostConfirmation AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:34 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    custommelcaasErrorNotification      AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:34 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    authmelcaasAuth                     AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:34 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS apimelcaasGraphQLAPI                AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:36 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:21:37.982Z [INFO]: 
2022-07-15T07:21:37.983Z [INFO]: UPDATE_IN_PROGRESS amplify-melcaas-newenv-65719-apimelcaasGraphQLAPI-M9TTZWQXQ8PL AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:37 GMT+0000 (Coordinated Universal Time) User Initiated
2022-07-15T07:21:47.987Z [INFO]: 
2022-07-15T07:21:47.988Z [INFO]: UPDATE_IN_PROGRESS FunctionDirectiveStack AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:45 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Employee               AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:45 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    FunctionDirectiveStack AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:45 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Employee               AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:46 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:21:52.995Z [INFO]: 
2022-07-15T07:21:52.997Z [INFO]: UPDATE_IN_PROGRESS EmployeeGroupAllocation   AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS NessusRecord              AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS OpenVASRecord             AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Target                    AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS MeliusIssueRepresentation AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS EmployerGroup             AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS HIBPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS ScanStatistic             AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:48 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Employer                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    EmployeeGroupAllocation   AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS User                      AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    NessusRecord              AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    OpenVASRecord             AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Target                    AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    ScanStatistic             AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    HIBPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    EmployerGroup             AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Employer                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    User                      AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    MeliusIssueRepresentation AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:49 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS NMAPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:51 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    NMAPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:52 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS ConnectionStack           AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:52 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:21:53.302Z [INFO]: 
2022-07-15T07:21:53.302Z [INFO]: UPDATE_COMPLETE ConnectionStack AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:53 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:21:58.018Z [INFO]: 
2022-07-15T07:21:58.019Z [INFO]: UPDATE_IN_PROGRESS CustomResourcesjson AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:55 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    CustomResourcesjson AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:56 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:22:03.013Z [INFO]: 
2022-07-15T07:22:03.015Z [INFO]: UPDATE_COMPLETE_CLEANUP_IN_PROGRESS amplify-melcaas-newenv-65719-apimelcaasGraphQLAPI-M9TTZWQXQ8PL AWS::CloudFormation::Stack Fri Jul 15 2022 07:21:59 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:22:12.903Z [INFO]: 
2022-07-15T07:22:12.904Z [INFO]: UPDATE_COMPLETE apimelcaasGraphQLAPI AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:11 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:22:17.912Z [INFO]: 
2022-07-15T07:22:17.913Z [INFO]: UPDATE_IN_PROGRESS functionS3Triggere603b8f1             AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:13 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasCreateDailyStatistics  AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:13 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasAuthPreTokenGeneration AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:13 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasInitialSetup           AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:13 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasAuthPreSignup          AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:13 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasDBStreamEmployer       AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:13 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionS3Triggere603b8f1             AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:14 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthPreTokenGeneration AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:14 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasDBStreamEmployer       AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:14 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasCreateDailyStatistics  AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:14 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasInitialSetup           AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:14 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthPreSignup          AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:14 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS storagemelcaasStorage                 AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:16 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS AuthTriggerCustomLambdaStack          AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:16 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    storagemelcaasStorage                 AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:17 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:22:17.983Z [INFO]: 
2022-07-15T07:22:17.984Z [INFO]: UPDATE_IN_PROGRESS amplify-melcaas-newenv-65719-AuthTriggerCustomLambdaStack-BZY3UBSEFEPO AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:17 GMT+0000 (Coordinated Universal Time) User Initiated
2022-07-15T07:22:22.917Z [INFO]: 
2022-07-15T07:22:22.918Z [INFO]: UPDATE_IN_PROGRESS functionmelcaasToolRunnerNMAP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:19 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasToolRunnerOpenVAS AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:19 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasToolRunnerHIBP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:19 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasToolRunnerNMAP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:20 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasToolRunnerOpenVAS AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:20 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_FAILED      functionmelcaasToolRunnerHIBP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:20 GMT+0000 (Coordinated Universal Time) Parameters: [secretsPathAmplifyAppId] must have values
2022-07-15T07:22:23.085Z [INFO]: 
2022-07-15T07:22:23.085Z [INFO]: UPDATE_ROLLBACK_IN_PROGRESS amplify-melcaas-newenv-65719-AuthTriggerCustomLambdaStack-BZY3UBSEFEPO AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:21 GMT+0000 (Coordinated Universal Time) Initiated by parent stack
2022-07-15T07:22:32.925Z [INFO]: 
2022-07-15T07:22:32.927Z [INFO]: UPDATE_FAILED               AuthTriggerCustomLambdaStack AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:31 GMT+0000 (Coordinated Universal Time) Resource update cancelled
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-melcaas-newenv-65719 AWS::CloudFormation::Stack Fri Jul 15 2022 07:22:32 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [functionmelcaasToolRunnerHIBP, AuthTriggerCustomLambdaStack].
2022-07-15T07:23:02.945Z [INFO]: 
2022-07-15T07:23:02.946Z [INFO]: UPDATE_IN_PROGRESS functionmelcaasAuthCustomMessage AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:02 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS custommelcaasErrorNotification   AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:02 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:03.241Z [INFO]: 
2022-07-15T07:23:03.242Z [INFO]: UPDATE_IN_PROGRESS authmelcaasAuth                     AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:02 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthCustomMessage    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:02 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    custommelcaasErrorNotification      AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:02 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasAuthPostConfirmation AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:02 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:07.940Z [INFO]: 
2022-07-15T07:23:07.941Z [INFO]: UPDATE_COMPLETE    authmelcaasAuth                     AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:03 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthPostConfirmation AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:03 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS apimelcaasGraphQLAPI                AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:04 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:08.043Z [INFO]: 
2022-07-15T07:23:08.044Z [INFO]: UPDATE_ROLLBACK_IN_PROGRESS amplify-melcaas-newenv-65719-apimelcaasGraphQLAPI-M9TTZWQXQ8PL AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:04 GMT+0000 (Coordinated Universal Time) User Initiated
2022-07-15T07:23:13.063Z [INFO]: 
2022-07-15T07:23:13.066Z [INFO]: UPDATE_IN_PROGRESS Employee                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS FunctionDirectiveStack    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    FunctionDirectiveStack    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Employee                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS ScanStatistic             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS NessusRecord              AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS MeliusIssueRepresentation AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Employer                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS EmployerGroup             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS OpenVASRecord             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS EmployeeGroupAllocation   AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Target                    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS User                      AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS HIBPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    ScanStatistic             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    MeliusIssueRepresentation AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Employer                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    EmployerGroup             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    OpenVASRecord             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    EmployeeGroupAllocation   AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    HIBPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    User                      AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    NessusRecord              AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Target                    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:10 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS NMAPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:10 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    NMAPRecord                AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:10 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:23.063Z [INFO]: 
2022-07-15T07:23:23.065Z [INFO]: UPDATE_IN_PROGRESS ConnectionStack AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:22 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    ConnectionStack AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:22 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:27.949Z [INFO]: 
2022-07-15T07:23:27.951Z [INFO]: UPDATE_COMPLETE    apimelcaasGraphQLAPI                  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasCreateDailyStatistics  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasInitialSetup           AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionS3Triggere603b8f1             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasAuthPreSignup          AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasDBStreamEmployer       AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasAuthPreTokenGeneration AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasInitialSetup           AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthPreSignup          AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:26 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasDBStreamEmployer       AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:27 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasAuthPreTokenGeneration AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:27 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionS3Triggere603b8f1             AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:27 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasCreateDailyStatistics  AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:27 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS AuthTriggerCustomLambdaStack          AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:27 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS storagemelcaasStorage                 AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:27 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:32.961Z [INFO]: 
2022-07-15T07:23:32.963Z [INFO]: UPDATE_COMPLETE    storagemelcaasStorage            AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:28 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasToolRunnerNMAP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:28 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS functionmelcaasToolRunnerOpenVAS AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:28 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasToolRunnerHIBP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:28 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasToolRunnerNMAP    AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:29 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    functionmelcaasToolRunnerOpenVAS AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:29 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:33.019Z [INFO]: 
2022-07-15T07:23:33.020Z [INFO]: UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-melcaas-newenv-65719-AuthTriggerCustomLambdaStack-BZY3UBSEFEPO AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:31 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:42.972Z [INFO]: 
2022-07-15T07:23:42.974Z [INFO]: UPDATE_COMPLETE                              AuthTriggerCustomLambdaStack         AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:38 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-melcaas-newenv-65719         AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:39 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              custommelcaasErrorNotification       AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              functionmelcaasDBStreamEmployer      AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              functionmelcaasToolRunnerNMAP        AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              functionmelcaasToolRunnerHIBP        AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              functionmelcaasToolRunnerOpenVAS     AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              functionmelcaasCreateDailyStatistics AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              functionmelcaasInitialSetup          AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE                              storagemelcaasStorage                AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:42 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:47.963Z [INFO]: 
2022-07-15T07:23:47.965Z [INFO]: UPDATE_COMPLETE functionS3Triggere603b8f1 AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:43 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:52.960Z [INFO]: 
2022-07-15T07:23:52.961Z [INFO]: UPDATE_COMPLETE AuthTriggerCustomLambdaStack          AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:51 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE functionmelcaasAuthPostConfirmation   AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:52 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE functionmelcaasAuthCustomMessage      AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:52 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE functionmelcaasAuthPreTokenGeneration AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:52 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:23:53.058Z [INFO]: 
2022-07-15T07:23:53.059Z [INFO]: UPDATE_COMPLETE functionmelcaasAuthPreSignup AWS::CloudFormation::Stack Fri Jul 15 2022 07:23:52 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:24:07.974Z [INFO]: 
2022-07-15T07:24:07.975Z [INFO]: UPDATE_COMPLETE          apimelcaasGraphQLAPI         AWS::CloudFormation::Stack Fri Jul 15 2022 07:24:03 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE          authmelcaasAuth              AWS::CloudFormation::Stack Fri Jul 15 2022 07:24:04 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE amplify-melcaas-newenv-65719 AWS::CloudFormation::Stack Fri Jul 15 2022 07:24:05 GMT+0000 (Coordinated Universal Time)
2022-07-15T07:24:33.161Z [INFO]: Following resources failed
2022-07-15T07:24:33.162Z [WARNING]: ✖ An error occurred when pushing the resources to the cloud
2022-07-15T07:24:33.164Z [WARNING]: ✖ There was an error initializing your environment.
2022-07-15T07:24:33.172Z [INFO]: ResourceNotReady: Resource is not in the state stackUpdateComplete
                                     at constructor.setError (/snapshot/repo/build/node_modules/aws-sdk/lib/resource_waiter.js:182:47)
                                     at Request.CHECK_ACCEPTORS (/snapshot/repo/build/node_modules/aws-sdk/lib/resource_waiter.js:44:12)
                                     at Request.callListeners (/snapshot/repo/build/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
                                     at Request.emit (/snapshot/repo/build/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
                                     at Request.emit (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:686:14)
                                     at Request.transition (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:22:10)
                                     at AcceptorStateMachine.runTo (/snapshot/repo/build/node_modules/aws-sdk/lib/state_machine.js:14:12)
                                     at /snapshot/repo/build/node_modules/aws-sdk/lib/state_machine.js:26:10
                                     at Request.<anonymous> (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:38:9)
                                     at Request.<anonymous> (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:688:12)
                                     at Request.callListeners (/snapshot/repo/build/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
                                     at Request.emit (/snapshot/repo/build/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
                                     at Request.emit (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:686:14)
                                     at Request.transition (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:22:10)
                                     at AcceptorStateMachine.runTo (/snapshot/repo/build/node_modules/aws-sdk/lib/state_machine.js:14:12)
                                     at /snapshot/repo/build/node_modules/aws-sdk/lib/state_machine.js:26:10
                                     at Request.<anonymous> (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:38:9)
                                     at Request.<anonymous> (/snapshot/repo/build/node_modules/aws-sdk/lib/request.js:688:12)
                                     at Request.callListeners (/snapshot/repo/build/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
                                     at callNextListener (/snapshot/repo/build/node_modules/aws-sdk/lib/sequential_executor.js:96:12)
                                     at IncomingMessage.onEnd (/snapshot/repo/build/node_modules/aws-sdk/lib/event_listeners.js:335:13)
                                     at IncomingMessage.emit (events.js:412:35)
                                     at IncomingMessage.emit (domain.js:475:12)
                                     at endReadableNT (internal/streams/readable.js:1334:12)
                                     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
                                   code: 'ResourceNotReady',
                                   retryable: false,
                                   time: 2022-07-15T07:24:28.155Z,
                                   statusCode: 200,
                                   retryDelay: 30000
                                 }
2022-07-15T07:24:33.213Z [ERROR]: !!! Build failed
2022-07-15T07:24:33.213Z [ERROR]: !!! Non-Zero Exit Code detected
2022-07-15T07:24:33.213Z [INFO]: # Starting environment caching...
2022-07-15T07:24:33.214Z [INFO]: # Uploading environment cache artifact...
2022-07-15T07:24:33.301Z [INFO]: # Environment caching completed
Terminating logging...

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Hello @benjeater, interesting. Could you please verify the profile being used for this environment by checking the local-aws-info.json present under the amplify/.config folder. If you are utilizing Vscode the folder may be hidden, please open the .vscode/settings.json and remove or comment out the line containing amplify/.config.

Could you please verify if the profile name does match with the profile in your credentials file locally and the credentials for the profile as well.