Build an End-to-end Ride Prediction Workflow

Build an End-to-end Ride Prediction Workflow

With the reusable Kinesis module in place, add the rest of the ride-prediction infrastructure. Terraform should describe the resources and their connections. Deployment scripts should handle the data and model steps that aren't Terraform resources.

Add the AWS resources

Store model artifacts in S3 and container images in ECR. Lambda handles prediction, while the pipeline sends input and output events through Kinesis. Terraform connects the relevant component names and ARNs in the root configuration.

The pipeline resources in the Terraform project

Run terraform init and terraform apply for a staging variable file. After the infrastructure exists, publish the image, copy the model artifact, and set the Lambda environment variables with the deployment scripts.

Terraform initializing the infrastructure

Keep these stages separate because Terraform owns infrastructure state, while the application deployment owns image tags, model run IDs, and test event data.

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.