github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/codebuild/AVD-AWS-0018/Terraform.md (about) 1 2 Enable encryption for CodeBuild project artifacts 3 4 ```hcl 5 resource "aws_codebuild_project" "good_example" { 6 // other config 7 8 artifacts { 9 // other artifacts config 10 11 encryption_disabled = false 12 } 13 } 14 15 resource "aws_codebuild_project" "good_example" { 16 // other config 17 18 artifacts { 19 // other artifacts config 20 } 21 } 22 23 resource "aws_codebuild_project" "codebuild" { 24 // other config 25 26 secondary_artifacts { 27 // other artifacts config 28 29 encryption_disabled = false 30 } 31 32 secondary_artifacts { 33 // other artifacts config 34 } 35 } 36 37 ``` 38 39 #### Remediation Links 40 - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codebuild_project#encryption_disabled 41