我正在查看用于设置AWS Transfer Family的 Terraform 坞站,我看到了这个示例
resource "aws_transfer_server" "example" {
endpoint_type = "VPC"
endpoint_details {
subnet_ids = [aws_subnet.example.id]
vpc_id = aws_vpc.example.id
}
protocols = ["FTP", "FTPS"]
certificate = aws_acm_certificate.example.arn
identity_provider_type = "API_GATEWAY"
url = "${aws_api_gateway_deployment.example.invoke_url}${aws_api_gateway_resource.example.path}"
}
然后我查看 API Gateway 的 terraform 文档,我看到了两个不同的用于实现 API Gateway 的文档。我应该使用哪个 Terraform API 来构建此集成?