Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.7 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.7 KB

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.