Eric
09/22/2023, 8:53 PMEric
09/22/2023, 8:54 PMif __name__ == "__main__":
deployment: Deployment = Deployment.build_from_flow(
flow=compile_and_analyze,
name="compile_feedback",
version="0.1",
tags=["feedack"],
work_pool_name='eric-local-work-pool',
# overwrite=True
)
deployment.apply()
But this still required me to manually authenticate beforeEric
09/22/2023, 8:55 PMJake Kaplan
09/22/2023, 9:02 PMprefect cloud login --key <api_key> --workspace '<account_handle>/<workspace_handle>'
alternatively you're able to set the environment variables directly in CI/CD e.x.
PREFECT_API_URL="<https://api.prefect.cloud/api/accounts/{account_id}/workspaces/{workspace_id}>"
PREFECT_API_KEY="<api key goes here>"
Eric
09/22/2023, 9:02 PM