Hi all, I need help with a Python deployment. Whenever, I try to deploy the script to Prefect Cloud. I get the following error.
ValueError: Unable to find block document named xxxx/xxxx for block type secret
here is my code.
deploy_flow = Deployment.build_from_flow(
flow=process_data_flow,
name="Test Flow",
version=1,
work_queue_name="iron_horse",
storage=GitHub(
repository='
https://github.com/xxxxx/xxxxxx.git',
access_token=Secret.load("block-type/block-name").get(),
reference='master'
),
I also checked the slug name using command "> prefect block ls" and I pasted the values into my script to make sure that I did not misspell the slug.
What am I doing wrong?