https://prefect.io logo
Title
v

vholmer

11/07/2022, 1:18 PM
Hi, when running prefect deployment build with an infrastructure block I want to override the values of an array in the yaml, does anyone here know how I can do that? 🤔
1
My current workaround is to do an --override property=REPLACEME and then editing the deployment.yaml file manually, replacing with a yaml array.
k

Khuyen Tran

11/07/2022, 4:29 PM
How does your array look like?
Which value of the infrastructure are you trying to override?
v

vholmer

11/07/2022, 4:42 PM
I'm trying to override "subnet_ids" in the deployment yaml I tried f"--override subnet_ids={my_value}" I also tried f"--override subnet_ids=[{my_value}]" And f"--override subnet_ids=['{my_value}']" None of them seem to work! 😞 That's why I went with the hacky replacement directly in the yaml before applying the deployment file.
I also tried [my_value] as a list into the interpolated string, didn't work either!
k

Khuyen Tran

11/07/2022, 5:00 PM
It seems like the values you provide for override need to be a string: https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/deployment.py#L657
Can you create an issue to support a list on Prefect GitHub? This will make it easier for us to track this isue
v

vholmer

11/07/2022, 6:08 PM
@Khuyen Tran Sure! I'll send you the link here when I did!
k

Khuyen Tran

11/07/2022, 8:59 PM
Thank you for the issue!