I'm looking at the Terraform docks for setting up AWS Transfer Family and I see this example
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}"
}
I then look at the terraform docs for API Gateway and I see two different docs for implementing an API Gateway. Which Terraform API should I use to build this integration?
According to the custom identity provider documentation AWS Transfer Family expects a REST endpoint and therefore you should use
aws_api_gateway_rest_api
.