Skip to content

This is a demo project to illustrate, how to use tflint, Checkov, OPA, Terrascan, and Terratest to test Terraform project using CodeBuild and CodePipeline AWS services.

Notifications You must be signed in to change notification settings

cpieper78/tf-s3-demo-project

 
 

Repository files navigation

S3 Bucket Terraform demo project

This is a demo project to illustrate, how to use tflint, Checkov, OPA, Terrascan, and Terratest to test Terraform project using CodeBuild and CodePipeline AWS services.

Check out How to use CodePipeline CICD pipeline to test Terraform article for more information.

Deployment

Modify Infracost SSM parameter store key name at buildspec-infracost.yml.

Deploy module as usual:

terraform init
terraform apply -auto-approve

Tier down

terraform destroy -auto-approve

Providers

Name Version
aws 3.63.0

Resources

Name Type
aws_kms_key.this resource
aws_s3_bucket.test resource
aws_s3_bucket_policy.test resource
aws_s3_bucket_public_access_block.s3Public_test resource
aws_caller_identity.current data source

Outputs

Name Description
bucket_id The name of the bucket.

About

This is a demo project to illustrate, how to use tflint, Checkov, OPA, Terrascan, and Terratest to test Terraform project using CodeBuild and CodePipeline AWS services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 57.3%
  • Go 33.5%
  • Open Policy Agent 9.2%