Skip to content

Commit f2bcc1b

Browse files
author
Matheus Politano
committed
chore: add resource example
1 parent cafad57 commit f2bcc1b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/resources/stackit_cdn_distribution/resource.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,24 @@ resource "stackit_cdn_distribution" "example_bucket_distribution" {
3838
optimizer = {
3939
enabled = false
4040
}
41+
42+
redirects = {
43+
rules = [
44+
{
45+
description = "test redirect"
46+
enabled = true
47+
rule_match_condition = "ANY"
48+
status_code = 302
49+
target_url = "https://stackit.de/"
50+
matchers = [
51+
{
52+
values = ["*/otherPath/"]
53+
value_match_condition = "ANY"
54+
}
55+
]
56+
}
57+
]
58+
}
4159
}
4260
}
4361

0 commit comments

Comments
 (0)