Description
Hello, when trying to create a CDN distribution with a bucket backend + redirect rules, we get an Internal Server error. Even when using the API, we were unable to get it working.
Steps to reproduce
resource "stackit_objectstorage_bucket" "my_bucket" {
project_id = local.project_id
name = "a-sample-bucket-123"
}
resource "stackit_cdn_distribution" "my_cdn" {
project_id = local.project_id
config = {
backend = {
type = "bucket"
bucket_url = "https://a-sample-bucket-123.object.storage.eu01.onstackit.cloud"
region = local.region
credentials = {
access_key_id = var.bucket_access_key
secret_access_key = var.bucket_secret_key
}
}
regions = ["EU"]
redirects = {
rules = [
{
description = "test redirect"
enabled = true
rule_match_condition = "ANY"
status_code = 302
target_url = "https://stackit.de/"
matchers = [
{
values = ["*/otherPath/"]
value_match_condition = "ANY"
}
]
}
]
}
}
}
Creating the same distribution without redirect rules works as expected.
Actual behavior
Internal Server error on update and on create.
Expected behavior
Redirect rules should be created without error messages.
Environment
- OS: Ubuntu 24.04 LTS
- Terraform v1.15.8 on linux_amd64
- provider registry.terraform.io/stackitcloud/stackit v0.104.0
Additional information
We know this resource is in beta but the usecase of hosting a static website on StackIT Object Storage + CDN in front is currently not working for us.
Description
Hello, when trying to create a CDN distribution with a bucket backend + redirect rules, we get an Internal Server error. Even when using the API, we were unable to get it working.
Steps to reproduce
Creating the same distribution without redirect rules works as expected.
Actual behavior
Internal Server error on update and on create.
Expected behavior
Redirect rules should be created without error messages.
Environment
Additional information
We know this resource is in beta but the usecase of hosting a static website on StackIT Object Storage + CDN in front is currently not working for us.