The AWS CodeBuild project orchestrates around CloudFormation Guard and runs validation checks of your CloudFormation templates as a phase of the CI process.
From the AWS Developer Tools console, use the navigation pane to choose Build then choose Build projects.
Choose Create project.
For Project name, enter the name cfn-guard-demo
.
For Source provider, choose AWS CodeCommit.
For Repository, choose the CodeCommit repository cfn-guard-demo
that you created in the previous lab. Keep the rest of the configurations for Source as the default.
To set up the CodeBuild environment you will use managed image based on Ubuntu.
For Provisioning model, select On-demand.
For Environment Image, select Managed image.
For Compute, select EC2.
For Operating system, choose Ubuntu.
For Service role¸ select New service role.
For Role name, enter the service role name codebuild-cfn-guard-demo-service-role
.
Leave the default settings for additional configurations.
For Buildspec specifications, select Use a buildspec file.
Use the buildspec file in your previously created repository. In this case **buildspec.yml**
.
Leave the remaining defaults and choose Create build project.
To avoid incurring future charges, delete the resources that you have created during the walkthrough:
CodeBuild project
CodeCommit repository