Loading...
Loading...
### Terraform Version ```shell terraform v1.11.3 + provider registry.terraform.io/oracle/oci v6.32.0 ``` ### Terraform Configuration Files ``` terraform { backend “s3” { bucket = "terraform-states" region = "us-ashburn-1" key = "terraform-state/tf.tfstate" access_key = "" secret_key = "" skip_region_validation = true skip_credentials_validation = true skip_requesting_account_id = true use_path_style = true skip_s3_checksum = true skip_metadata_api_check = true endpoints = { s3 = "" } } } ``` ### Debug Output ``` Error: Failed to save state │ │ Error saving state: failed to upload state: operation error S3: PutObject, https response error StatusCode: 400, RequestID: │ iad-1:0BBy1KcxkQWIHV23yOGenzbYUYqiA3EC12limtTcauUD6WSU7rAQY33U3SKlTvdy, HostID: , api error InvalidArgument: x-amz-content-sha256 must be UNSIGNED-PAYLOAD or a valid │ sha256 value. ╵ ╷ │ 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 ``` ### Expected Behavior Plan successfully saved to Object storage ### Actual Behavior ``` Error: Failed to save state │ │ Error saving state: failed to upload state: operation error S3: PutObject, https response error StatusCode: 400, RequestID: │ iad-1:0BBy1KcxkQWIHV23yOGenzbYUYqiA3EC12limtTcauUD6WSU7rAQY33U3SKlTvdy, HostID: , api error InvalidArgument: x-amz-content-sha256 must be UNSIGNED-PAYLOAD or a valid │ sha256 value. ``` ### Steps to Reproduce terraform init terraform apply --auto-approve ### Additional Context This was working before and suddenly stopped working, I've tried reverting to older version of terraform. Same issue ### 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.