Search code examples
aws-api-gatewayterraformamazon-kinesis-firehose

What should be service api for aws_api_gateway_integration with firehose in terraform


As per terraform doc, uri for the aws_api_gateway_integration should be

resource "aws_api_gateway_integration" "integration" {

    ...
    ...
    uri = "arn:aws:apigateway:{region}:firehose:PutRecord/{service_api}"

}   

I am not able to figure out what the service_api should be. Can you please help?

https://www.terraform.io/docs/providers/aws/r/api_gateway_integration.html


Solution

  •   type = "AWS"
      integration_http_method = "POST"
      uri = "arn:aws:apigateway:${var.aws_region}:firehose:action/PutRecord"