Concepts
Services
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:
- Create a Dockerfile that can build and run your application.
- 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 yourlaunchflow.yaml
). - Run
lf deploy
on the command line. This will prompt you to confirm the deployment, and create the following in GCP:- An Artifact Registry repository to store the Docker image.
- A Cloud Build workflow to build and deploy it.
- A Load Balancer to route traffic to it.
- A Cloud Run service to run it.
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
1lf deploy
Delete a Service
1lf destroy
List Services
1lf services list
Promote a Service
1lf promote [FROM_ENVIRONMENT] [TO_ENVIRONMENT]
For a full list of options see the command references: