-
Notifications
You must be signed in to change notification settings - Fork 699
Terraform remote state with OCI bucket failing to save state file in OCI bucket #2348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
the same issue is been happening since terraform version 1.11.2, as to add further info into the issue, regards. |
I was able to resolve this by adding these environment variables export AWS_REQUEST_CHECKSUM_CALCULATION=when_required link to issue on hashicorp that resolved it: hashicorp/terraform#36704 |
is there a way to do this through flags instead? i would have imagine that the flag "skip_s3_checksum = true" would have us skip this altogether |
Don't know about the configuration flags, but I found at setting the following in the ini file containing the access and secret keys works
|
I confirm that this works. The default file in Ubuntu is ~/.aws/credentials. Here is my copy"
|
Terraform OCI Object Storage failing to save terraform remote state
terraform v1.11.3
Affected Resource(s)
terraform remote backend, the s3 remote state was working and suddenly stopped working with the error Error: Failed to save state. The state is initialized properly but fails to save it even with the right permission in place.
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 = ""
}
}
}
The text was updated successfully, but these errors were encountered: