Pattern: Disabled in-transit encryption for AWS Kinesis stream
Issue: -
Kinesis streams should be encrypted to ensure sensitive data is kept private. Additionally, non-default KMS keys should be used so granularity of access control can be ensured.
Resolution: Enable in transit encryption.
Example of incorrect code:
resource "aws_kinesis_stream" "bad_example" {
encryption_type = "NONE"
}
Example of correct code:
resource "aws_kinesis_stream" "good_example" {
encryption_type = "KMS"
kms_key_id = "my/special/key"
}