You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When terraform apply is run within pipeline, the terraform state should be saved with no issue.
Actual Behavior
The terraform state persistence fails with the following error:
Error: Failed to save state
Error saving state: failed to upload state: operation error S3: PutObject,
failed to rewind transport stream for retry, request stream is not seekable
Error: Failed to persist state to backend
The error shown above has prevented Terraform from writing the updated state
to the configured backend. To allow for recovery, the state has been written
to the file "errored.tfstate" in the current working directory.
Running "terraform apply" again at this point will create a forked state,
making it harder to recover.
To retry writing this state, use the following command:
terraform state push errored.tfstate
It appears that the error may be a terraform bug and we see the same issue in v1.6.6: hashicorp/terraform#34528
Additionally, the CloudTrail does not show any errors for the HTTP request that is being sent by terraform to AWS s3 (PutObject), which is a good indication that the problem lies on terraform (no issue in cloudtrail and the state gets saved, but the terraform still fails).
The state push fix (#6020 and #6022) for the state persistence failure is now rolled out to the scheduled baseline workflow with temporarily suppression of slack alerts for when the state push is successful.
Use the above state push fix (#6020 and #6022) to roll it out in all workflows in all repos (see the full list in the Definition of Done section).
Expected Behavior
When terraform apply is run within pipeline, the terraform state should be saved with no issue.
Actual Behavior
The terraform state persistence fails with the following error:
See this pipeline failure as an example.
Additional information and the fix that needs to be rolled out
See this issue for details #5859
It appears that the error may be a terraform bug and we see the same issue in v1.6.6:
hashicorp/terraform#34528
Additionally, the CloudTrail does not show any errors for the HTTP request that is being sent by terraform to AWS s3 (PutObject), which is a good indication that the problem lies on terraform (no issue in cloudtrail and the state gets saved, but the terraform still fails).
The state push fix (#6020 and #6022) for the state persistence failure is now rolled out to the scheduled baseline workflow with temporarily suppression of slack alerts for when the state push is successful.
Use the above state push fix (#6020 and #6022) to roll it out in all workflows in all repos (see the full list in the Definition of Done section).
Version
n/a
Modules
n/a
Account
all
Definition of done
Roll the fix out to the below repos/workflows:
The text was updated successfully, but these errors were encountered: