Best practices for software development include testing your code. We have been testing whether Terraform is delivering the required outputs by validating that our resources exist in the AWS console. The automation of tests gives us a repeatable way to confirm that our product is behaving in the expected way. However, it is important to test non-functional requirements as well. Product security and availability are two aspects that affect every task. In addition to reducing toil through continuous builds and deployment of our code, we must ensure code quality. To this effect, we will create another CodeBuild project using the open source Sonar (https://www.sonarqube.org/) project.Â
We will start by creating a sonarqube.yml file in our root directory:
version: 0.2
phases...