Open zachegnermh opened 1 year ago
Now also getting this error. 🛑 File at path: '/codebuild/output/src237460651/src/AppName/amplify/backend/backend-config.json' does not exist
Session Identifier: a17a314c-e48e-4bf1-92ee-ff517eb9978b
Hi @zachegnermh thank you for opening this issue. Could you share your APP ID please?
Hi @nadetastic, here is the App ID d33kgav0kn9955
We are having this same issue on a newly created app which is pulling down and building automatically. Using the PR referenced above (#3482) we were able to add the items to the Parameter Store as required.
The builds are still failing saying it can not pull the information from the Parameter Store. App ID is d158aszzmmth1v and amplify version is 12.0.3 which is the latest as of this comment.
As an aside it seems that amplify push
will add these missing keys/values in automatically.
To circle back on this it appears that the new app was created with the wrong Service Role. I noticed during the cloning process in build the SSM part was failing. After a bit of checking the app was using the role amplifyconsole-backend-role instead of the correct one which is AmplifyConsoleServiceRole-AmplifyRole under App settings. Once the app's role was updated and rebuilt manually it completed as expected and pulled down the settings from the Parameter Store.
So if you are coming here having a similar issue check the "Cloning repository" section of the build panel and see if you have a line like [WARNING] !Failed to set up process.env.secrets
. If so check your Application's Service Role.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication, GraphQL API
Amplify Categories
auth, api, hosting
Environment information
Describe the bug
When connecting a CodeCommit repository to Amplify using built-in CI/CD, there is a bug that causes the app to fail on 'Backend Build' during deployment. The error message that is displayed states that the environment is missing values for 'appId' and 'type'.
Expected behavior
The app should deploy after connecting to a branch.
Reproduction steps
1.) Create a new CodeCommit repository in AWS. 2.) Create a new Amplify app in the Amplify console, connect the CodeCommit repository to the Amplify app using the built-in CI/CD feature. 3.) Use default build settings. 4.) App should starting deploying. 5.) Observe that the deployment fails with the error message "This environment is missing some parameter values. [appId,type] do not have values."
Code Snippet
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response