Skip to content

[Bug]: E3 object storage buckets don't support CORS #2083

@pablopla

Description

@pablopla

Terraform Version

Terraform v1.12.2 on linux_amd64

Linode Provider Version

version = "3.2.0"

Effected Terraform Resources

linode_object_storage_bucket

Terraform Config Files

resource "linode_object_storage_bucket" "test_bucket" {
  access_key = linode_object_storage_key.test_key.access_key
  secret_key = linode_object_storage_key.test_key.secret_key

  region = "gb-lon"
  label = "test-bucket"
  cors_enabled = true
}

Debug Output

Error: failed to update bucket access: [400] CORS not allowed for this endpoint; Could not set bucket CORS

Panic Output

No response

Expected Behavior

Terraform should detect that cors_enabled is not supported on this cluster before trying to apply it.
The docs should mention that cors_enabled is not supported on E2 and E3 buckets:
https://registry.terraform.io/providers/linode/linode/latest/docs/resources/object_storage_bucket#cors_enabled-1

Why E3 buckets don't support setting cors? This limits its usefulness for client facing use cases. Is there a workaround?

Actual Behavior

Error

Steps to Reproduce

terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissues that report a bugkeepprevent github from closing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions