Category: CodeBuild
-
AWS SAM not re-creating DynamoDb Table that was manually deleted – CodeStar
Hi everyone, I ran into a bit of an issue after deleting a DynamoDb table via the AWS Console that had been created via CloudFormation (using AWS SAM). After deleting it I had expected it to be re-created automatically on the next deploy. Unfortunately this didn’t happen. I came across the following AWS article that…
-
4: /codebuild/output/tmp/script.sh: pip: not found – Node.js and CodeStar
Hi everyone, I ran into the following CodeBuild error after upgrading my build environment from the default nodejs8.10 to nodejs10.14: 4: /codebuild/output/tmp/script.sh: pip: not found This one was a little confusing, but thankfully fairly easy to fix. In your buildspec.yml file update the pip steps to reference pip3 instead of pip: // Original commands: #…
-
mocha tests/* sh: 1: mocha: Permission denied – AWS CodeBuild with Node.js
Hi everyone, I ran into the following error while running a Node.js build with AWS CodeBuild: mocha tests/* sh: 1: mocha: Permission denied To resolve this I removed node_modules from my repository and added it to .gitignore: node_modules/ Thanks to the following links for the info: Add node_modules to gitignore: https://stackoverflow.com/a/29820869/522859 Misc background issues: https://github.com/mochajs/mocha/issues/1487