I want to enable the Extract message fields only from log events → Turn on message extraction flag when configuring the Decompress source records from Amazon CloudWatch Logs feature in a firehose data stream.
Looking at ProcessorParameter there doesn’t seem to be a parameter option that might be related to the message extraction setting.
However, I notice on this page that the CreateDeliveryStream API does support a parameter called DataMessageExtraction. The enum in the AWS Go SDK v2 also has DataMessageExtraction, so I think it’s just not documented in the API reference.
Perhaps you can cross-check by creating or updating (if you can, I don’t use Kinesis enough to know) the delivery stream and observe the corresponding CloudTrail event whether DataMessageExtraction is set and what value it’s set to (maybe true, not sure). Then you should be able to set the same parameter in your processors block for decompression in TF.
If you feel charitable, please open an AWS support case and notify them about this missing parameter in their API reference
Thank you for the help, so even though terraform/aws docs do not specify the use of the CloudWatchLogExport it is already supported in the latest version of the terraform aws provider.