Is it possible to use a yaml array in --properties
with gcloud deployment-manager
?
I've tried something like:
gcloud deployment-manager deployments create my-deployment --template my-firewall.py --properties "ips:['127.0.0.1','127.0.0.2']"
And I get:
ERROR: (gcloud) Failed to parse YAML: while parsing a flow sequence
in "<unicode string>", line 1, column 1:
['127.0.0.1'
^ (line: 1)
expected ',' or ']', but got '<stream end>'
in "<unicode string>", line 1, column 13:
['127.0.0.1'
^ (line: 1)
It should be possible to do it with flow style on a single line, but I think the gcloud
CLI splits the string on commas. I have not figured out a way to escape the comma.