Terraform: Introduction

Infrastructure as code describes cloud resources in version-controlled files. Terraform turns those declarations into a plan that can be reviewed before it changes AWS.

Model the stream pipeline

The example provisions the infrastructure for the stream-based ride-prediction service:

  • Kinesis streams for input and output.
  • A Lambda serving function.
  • An S3 bucket for model artifacts.
  • An ECR repository for the image.

The AWS stream-based ride-prediction architecture

Terraform uses a provider to talk to AWS, resources to describe objects, variables for environment-specific values, and state to remember what it manages.

The Terraform project and its AWS resources

Initialize the project with terraform init, review terraform plan, and apply only after checking the proposed changes. Destroy temporary infrastructure when the exercise is complete because the AWS resources can incur charges.

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.