根据未解决的问题(link,link)和源代码(link),localstack不支持将API Gateway集成类型设置为AWS。 Terraform代码示例:
resource "aws_api_gateway_integration" "<name>" {
rest_api_id = aws_api_gateway_rest_api.APIGateway.id
resource_id = aws_api_gateway_resource.<resource>.id
...
type = "AWS"
request_templates = {
"application/json" = file(<path_to_velocity_template>)
}
}
部署此集成时,所有请求都将导致{"message": "API Gateway AWS integration action URI <uri>, method \"POST\" not yet implemented"}
是否可以通过某种localstack插件或分叉的Docker映像启用此支持?
谢谢。