How do you send HTTP Headers using the aws_cloudwatch_event_target resource?

I want to use aws_cloudwatch_event_target to POST the event to an API Gateway REST API. The aws_api_gateway_method is currently set up to require an API key and I create the key using the aws_api_gateway_api_key resource.

In the AWS console, I can specify the HTTP headers for this integration. How do specify the x-api-key HTTP header with the aws_cloudwatch_event_target resource?

Cloudformation has something called HttpParameters which I cannot find in Terraform. I am using the aws provider 3.20.0.

There doesn’t appear to be a manner in which to do this, nor are there any issues that exist in the AWS Provider in GitHub that ask for it.

I think it would be a good issue to add to it!