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.