Florent VanDeMoortele
06/27/2023, 12:46 PMMarvin
06/27/2023, 12:47 PM--param
flag when building a deployment. For example:
--param question=ultimate --param answer=42
Or you can use the --params
flag and provide a JSON string with the parameters:
--params='{"question": "ultimate", "answer": 42}'
However, I couldn't find any information specifically about setting default block parameters in a deployment YAML file. It seems that the primary method for setting default parameters is through the CLI flags mentioned above. You can find more information in the Prefect documentation.
And so, the YAML file remains a mystery, much like the meaning of life, the universe, and everything.Florent VanDeMoortele
06/27/2023, 3:49 PMparameters: {"name of your arg to set": {
"blockTypeSlug": "block type name",
"blockDocumentId": block id (found with prefect blocks ls)
}}