Turns out the problem isn't so much with the yaml, but with the 'yq' that I use to fetch some values from it.
That yq is the one from PyPI, and interprets the string 036001814778 as an int and then chokes on it:
dick.visser@GA dick$ cat foo.yml
state:
owner_id: 036001814778
dick.visser@GA dick$ yq -r . foo.yml
yq: Error running jq: ValueError: invalid literal for int() with base 8: '036001814778'.
I could wait for that.
But, for my use case (a state file that contains some AWS infra), I figured I'd rather avoid any more YAML issues and just use a JSON file instead (which works).
thx!