Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 207
Balaji Avatar asked Oct 21 '17 01:10

Balaji


2 Answers

  type = "AWS"
  integration_http_method = "POST"
  uri = "arn:aws:apigateway:${var.aws_region}:firehose:action/PutRecord"
like image 87
Balaji Avatar answered Sep 23 '22 02:09

Balaji


I found an example here:

type                    = "AWS"
integration_http_method = "POST"
uri                     = "arn:aws:apigateway:${var.aws_region}:kinesis:action/DescribeStream"

Example taken from here:

like image 37
Sören Avatar answered Sep 21 '22 02:09

Sören