In the previous recipe, we saw how to build the application using AWS CodeBuild. However, in that case, we used the build commands (mvn install) in the console only, as shown in the following image:
When it comes to the complex scenario, it means we need more than one build commands and need to perform some additional operations in the build environment. For this, we use the buildspec.yml file.