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!