Skip to content

Deploy to the cloud

View as Markdownllms.txt

This lesson runs the same project on AWS: EKS for Kubernetes, ECR for images, S3 for storage, RDS PostgreSQL for service state and AWS Glue as the Iceberg catalog.

You will deploy the project you built to your own AWS account and validate it, in about 60 minutes plus the time AWS needs to create the cluster.

Start from the project of lesson 9, and an AWS account that meets the prerequisites of the AWS guide. Your lakehouse_code/ does not change: only the Deployment Profile does.

In openlakeforge.yaml, set the provider and the region, keep only the DEV stage, and remove the access: and identity: blocks:

spec:
provider:
type: aws
region: eu-west-1
stages:
dev:
enabled: true

The cloud deployment is validated with one stage, so the DEV-to-PROD promotion of lesson 9 stays on your local platform. The cloud deployment publishes no routes, so there is no sign-in: you reach its services with olf infra forward, and an access: block would require identity:.

Terminal window
olf profile validate --project .
Terminal window
olf infra auth login --provider aws

It reuses your default AWS profile, or asks for your IAM Identity Center start URL and region. The other sign-in options are in Deploy to AWS. The cloud pushes your image to its own ECR registry, so clear the registry settings of lesson 9:

Terminal window
unset PROJECT_CODE_IMAGE_REPOSITORY PROJECT_CODE_IMAGE_TAG

The same phases you used locally:

Terminal window
olf infra deploy --provider aws --phase foundation # VPC, EKS, ECR, IAM
olf infra deploy --provider aws --phase platform # S3, Glue, RDS, Trino, Dagster, Superset, OpenMetadata
olf infra deploy --provider aws --phase artifacts # build and push images, load your code

The cloud has no public endpoint. To open the services, port-forward them to your machine, then stop with Ctrl-C; Dagster is at http://localhost:3000:

Terminal window
olf infra forward --provider aws

Stop olf infra forward first: run one olf command at a time.

Terminal window
olf infra e2e run --env aws

It launches every product’s job on EKS and verifies the Silver and Gold tables, the dashboards and OpenMetadata. It ends with a line of the form <Env> OpenLakeForge <suite> e2e validation passed.

Terminal window
olf infra destroy --provider aws

On Azure the steps are the same with --provider azure, plus a variables file for the resource group and node size; see Deploy to Azure.

  • The project does not change between local, AWS and Azure; the profile’s provider does.
  • A cloud deploy is the same foundation, platform and artifacts phases.
  • Cloud services are reached with olf infra forward, and olf infra e2e run --env aws validates them.

Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/tutorial/10-deploy-to-the-cloud.md.