For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

AWS Image Builder Distribution Configuration is not encrypting AMI by Key Management Service (KMS) u

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_199

Category - Subcategory

Storage - Encryption

Provider

AWS

Severity

LOW

Framework

Terraform

Impact

This rule identifies Elastic File Systems (EFSs) 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 EFS data. It gives you full control over the encrypted data.

How to Fix

Resource: aws_imagebuilder_distribution_configuration

  • Arguments: distribution.ami_distribution_configuration.kms_key_id [source,go]


resource "aws_imagebuilder_distribution_configuration" "pass" { name = "example" description = "non empty value"

distribution { ami_distribution_configuration { kms_key_id = aws_kms_key.fail.arn ami_tags = { CostCenter = "IT" }

name = "example-{{ imagebuilder:buildDate }}"

launch_permission { user_ids = ["123456789012"] } }

region = "us-east-1" } }

Last updated

Was this helpful?