Deploy to the cloud
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.
1. Point the profile at AWS
Section titled “1. Point the profile at AWS”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: trueThe 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:.
olf profile validate --project .2. Authenticate
Section titled “2. Authenticate”olf infra auth login --provider awsIt 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:
unset PROJECT_CODE_IMAGE_REPOSITORY PROJECT_CODE_IMAGE_TAG3. Deploy
Section titled “3. Deploy”The same phases you used locally:
olf infra deploy --provider aws --phase foundation # VPC, EKS, ECR, IAMolf infra deploy --provider aws --phase platform # S3, Glue, RDS, Trino, Dagster, Superset, OpenMetadataolf infra deploy --provider aws --phase artifacts # build and push images, load your codeThe 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:
olf infra forward --provider awsCheck it worked
Section titled “Check it worked”Stop olf infra forward first: run one olf command at a time.
olf infra e2e run --env awsIt 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.
Tear down
Section titled “Tear down”olf infra destroy --provider awsOn Azure the steps are the same with --provider azure, plus a variables file
for the resource group and node size; see
Deploy to Azure.
What you learned
Section titled “What you learned”- 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, andolf infra e2e run --env awsvalidates them.
- Deploy to AWS: every option, the limitations and the costs.
- CI/CD and environment promotion: build and deploy revisions from CI.
- Architecture: how the same project runs on each provider.
Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/tutorial/10-deploy-to-the-cloud.md.