Skip to content

AWS Code Artifact Domain is not encrypted by KMS using a Customer Managed Key (CMK)

Description

This policy identifies Code Artifact Domains which are encrypted with default KMS keys and not with Keys managed by Customer. It is a best practice to use customer managed KMS Keys to encrypt your Code Artifact Domain data. It gives you full control over the encrypted data.

Code Example

go
resource "aws_codeartifact_domain" "pass" {
  domain         = "example"
  encryption_key = aws_kms_key.example.arn
  tags = {
    "key" = "value"
  }
}

Remediation

Terraform

Rule Details

FieldValue
IDIAC-0269
SeverityLOW
IaC TypeTerraform
FrameworksTerraform
Checkov IDCKV_AWS_221

References