AWS Kinesis Streams contain potentially sensitive data that should be encrypted at rest using AWS KMS to enhance security. When Kinesis streams are not encrypted with KMS, data stored in them is vulnerable to unauthorized access if the underlying storage is compromised. To properly secure Kinesis streams, both the encryption_type must be set to KMS and a valid kms_key_id must be specified, as shown in the following example:
resource "aws_kinesis_stream" "secure_example" {
name = "terraform-kinesis-test"
// ... other configurations ...
encryption_type = "KMS"
kms_key_id = "alias/aws/kinesis"
}