Closed calnastic0 closed 1 year ago
As the error says, the problem is that the buildspec is incorrectly indented. You can see the error in any YAML validator tool online too:
You can read more about YAML indentation here: https://www.tutorialspoint.com/yaml/yaml_indentation_and_separation.htm
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
As the error says, the problem is that the buildspec is incorrectly indented. You can see the error in any YAML validator tool online too:
You can read more about YAML indentation here: https://www.tutorialspoint.com/yaml/yaml_indentation_and_separation.htm
Thank you for the reply, I have updated the yml file indent, tried two online validators and passed both. The file content has been updated in the original post.
Now the build error is:
2022-12-03T00:52:54.552Z [ERROR]: !!! CustomerError: The
artifacts
key was not provided in the build spec
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Before opening, please confirm:
App Id
d1d4m4xrhdcqdv
AWS Region
us-east-1
Amplify Hosting feature
Not Applicable
Describe the bug
For the app:
The following policies were attached to the service role:
"Reconnect repository" button was clicked and code branch was confirmed.
The build setting amplify.yml is copied from this article. I'm also pasting it below in the build setting box.
Expected behavior
Be able to build and deploy
Reproduction steps
Build Settings
Log output
Additional information
No response