aimoda / terraform-provider-corellium

Fork of terraform-provider-corellium for contributing upstream.
https://registry.terraform.io/providers/aimoda/corellium/latest
1 stars 0 forks source link

Fix SSE-C #4

Open Manouchehri opened 1 year ago

Manouchehri commented 1 year ago

For some reason, SSE-C still isn't being used for the unit tests; the encryption type is still AES256 (SSE-B2) and not AES256 (SSE-C) like expected. I've tried to rename it to AWS_SSE_CUSTOMER_KEY in hopes that it'll fix it.

I have this in another project and it works:

terraform {
  required_providers {
  }
  backend "s3" {
    bucket                      = "asdf-terraform"
    key                         = "state.json"
    skip_credentials_validation = true
    skip_region_validation      = true
    endpoint                    = "https://s3.us-east-005.backblazeb2.com"
    region                      = "us-east-005"
    encrypt                     = true
    force_path_style            = true # We do this to avoid leaking the bucket name to a DNS server
  }
}

And I run this before terraform apply:

export AWS_SSE_CUSTOMER_KEY="seXwFWeC02bV5GooK810mBSeeuHLprD+4QdG4l4zEFA="
Manouchehri commented 1 year ago

Oh, I think I see the issue..