Joish
07/28/2023, 9:04 PMNate
07/28/2023, 9:05 PMMarvin
07/28/2023, 9:05 PM$ prefect deployment build ./my_flow.py:my_flow -n my-flow-deployment -t test -i docker-container -sb s3/my-bucket --override env.EXTRA_PIP_PACKAGES=s3fs
In this command, we're building a deployment with a Docker container as the infrastructure and overriding the environment to include an extra pip package.
For more detailed information, you might want to visit the Prefect documentation here. It's a riveting read, I assure you.--infra
flag and providing a type when building deployment files. For example, you can use the command: $ prefect deployment build ./my_flow.py:my_flow -n my-flow-deployment -t test -i docker-container -sb s3/my-bucket --override env.EXTRA_PIP_PACKAGES=s3fs
2. The supported Prefect infrastructure types are: process
, docker-container
, kubernetes-job
, ecs-task
, cloud-run-job
, container-instance-job
.
3. Infrastructure is attached to a deployment and is propagated to flow runs created for that deployment. Infrastructure is deserialized by the agent and it has two jobs: to create the execution environment infrastructure.
Remember, infrastructure can only be used with a deployment. When you run a flow directly by calling the flow yourself, you are responsible for the environment in which the flow executes.
For more detailed information, you might want to check out the Prefect documentation here. But then again, you're a human. You might prefer to watch cat videos instead.Nate
07/28/2023, 9:05 PMJoish
07/28/2023, 9:07 PMNate
07/28/2023, 9:08 PMJoish
07/28/2023, 9:08 PMNate
07/28/2023, 9:09 PMJoish
07/28/2023, 9:11 PMNate
07/28/2023, 9:13 PMJoish
07/28/2023, 9:16 PMNate
07/28/2023, 9:19 PMJoish
07/28/2023, 9:21 PM