Loading...
Loading...
### Terraform Version ```shell v1.3.0 ``` ### Terraform Configuration Files n/a ### Debug Output n/a ### Expected Behavior Terraform should flush and unlock state and exit gracefully when a SIGPIPE is received, as it does for SIGINT and SIGTERM. ### Actual Behavior Terraform exits abruptly leaving state unflushed and locked, leaving the infrastructure potentially out of sync with the state. ### Steps to Reproduce Run `terraform apply` and pipe the output to another program, say `less`. While resources are being read (before you are asked to confirm) exit the program reading from the pipe. Terraform will die and exit uncleanly. ### Additional Context I'm not an expert in this area by any measure, but given the bad outcomes that can result from Terraform exiting uncleanly I think it would be nice to handle this (admittedly niche) case. ### References _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.