What should be the api service for aws_api_gateway_integration with firehose in terraform

As with the terraform doc, the uri for aws_api_gateway_integration should be

resource "aws_api_gateway_integration" "integration" {

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

}   

I can’t understand what service_api should be. Could you help me?

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

+4
source share
2 answers
  type = "AWS"
  integration_http_method = "POST"
  uri = "arn:aws:apigateway:${var.aws_region}:firehose:action/PutRec‌​ord"
+1
source

I found an example here :

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

An example from here :

+1
source

Source: https://habr.com/ru/post/1687919/


All Articles