This is a demo Terraform repository to set up AWS CodePipeline to test Terraform projects using tflint, Checkov, OPA, Terrascan, and Terratest.
Check out How to use CodePipeline CICD pipeline to test Terraform article for more information.
This step is required to set up an infrastructure to store Terraform remote state files
cd 0_remote_state
terraform init
terraform plan
terraform apply -auto-approve
This step is required to set up an AWS CodePipeline to test Terraform projects using tflint, Checkov, OPA, Terrascan, and Terratest.
cd 1_pipeline
terraform init
terraform plan
terraform apply -auto-approve