Loading...
Loading...
### Terraform Version ```shell v1.10.4. I confirmed the issue is present in 1.10.0, but not in 1.9.8. ``` ### Terraform Configuration Files N/A ### Debug Output N/A ### Expected Behavior ``` $ terraform -v Terraform v1.9.8 on linux_amd64 $ terraform console > yamldecode("foo: 10_000_000") { "foo" = 10000000 } ``` I expect the number with underscores defined in the YAML to be interpreted as a number. This has been a part of the [YAML spec](https://yaml.org/type/int.html) since YAML v1.1. ### Actual Behavior ``` $ terraform -v Terraform v1.10.4 on linux_amd64 $ terraform console > yamldecode("foo: 10_000_000") { "foo" = "10_000_000" } ``` On terraform v1.10.0 and later, the value is being incorrectly parsed as a string. ### Steps to Reproduce Use any sample YAML that includes a number with underscores. ### Additional Context I searched through open and closed issues but couldn't find anything reporting this. I apologize if it's a dupe! ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.