Skip to content

s3 backend: Failed to save state, encryption method specified is not supported #3476

@AntoineAugusti

Description

@AntoineAugusti

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

terragrunt version 0.93.8
OpenTofu v1.10.7

Affected Resource(s)

  • scaleway s3 backend

Terraform Configuration Files

terraform {
  backend "s3" {
    endpoint                    = "s3.fr-par.scw.cloud"
    bucket                      = "lvao-terraform-state"
    key                         = "${path_relative_to_include()}/terraform.tfstate"
    region                      = "fr-par"
    skip_credentials_validation = true
    skip_region_validation      = true
    # `encrypt = true` is important
    encrypt                     = true
    access_key                  = var.access_key
    secret_key                  = var.secret_key
  }
}

Debug Output

https://gist.github.com/AntoineAugusti/220f32ee05c8f1017f81ed3b389ce817

Panic Output

Expected Behavior

State is saved.

Actual Behavior

Tofu error and state is not saved.

Steps to Reproduce

  1. terraform apply

Important Factoids

encrypt = false resolves the issue.
I don't know how to configure the encryption mecanism.

References

Metadata

Metadata

Assignees

Labels

objectObject storage issues, bugs and feature requestspriority:highestBugs filled by customers, security issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions