Sonarqube integration with AWS Code Pipeline + Github
To perform a sonar scan and integrate the result in Sonarcloud with AWS code pipeline and Github.
- We must have the AWS account with necessary permission.
- Add/Manage the requires secrets with AWS "Secret Manager" service. In this project Used secret variables are:
sonartoken,HOST,Organization, andProject - Clone the source code from
[email protected]:VikashChoudahry/sonarqube-aws-codebuild.git - AWS Codebuild needs to be setup. While setting this up, we need to authenticate with Github so that it can read the source code
- AWS Codepipeline needs to be setup.
- Login to AWS Console.
- Search for "Code Build".
- Start the code build.
- I was getting the error as - "CodeBuild cannot find the 0.0.0.0/0 destination for the target internet gateway" "Fix": VPC setup wasn't done correctly. Post fix, everything started working fine.
For any additional help, please contact me from here or write to [email protected]. I would be happy to help you!