Concepts

Services


diagram

Overview

Services allow you to deploy web apps, APIs, and other types of applications to your cloud account with minimal configuration. All you need to provide is a Dockerfile that can build and run your application. LaunchFlow will take care of the rest, setting up a deployment pipeline that includes:

  1. Create a Dockerfile that can build and run your application.
  2. Add a Cloud Run service to your infra.py file. Pass it the path to the Dockerfile you created if necessary (by default, it will search for one next to your launchflow.yaml).
  3. Run lf deploy on the command line. This will prompt you to confirm the deployment, and create the following in GCP:

LaunchFlow is not just for deploying Python apps.

The Python SDK is used to define your infrastructure in code, but you can deploy any static or Dockerized application to AWS or GCP.

Python is just the language for your cloud configuration, similar to how Terraform uses HCL.

CLI Commands

Create a Service

1
lf deploy

Delete a Service

1
lf destroy

List Services

1
lf services list

Promote a Service

1
lf promote [FROM_ENVIRONMENT] [TO_ENVIRONMENT]

For a full list of options see the command references:

Previous
Resources