We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc3492 commit 942a46eCopy full SHA for 942a46e
1 file changed
terraform/website/main.tf
@@ -38,6 +38,25 @@ resource "aws_s3_bucket_website_configuration" "bucket" {
38
error_document {
39
key = "error.html"
40
}
41
+
42
+ routing_rules = jsonencode([
43
+ {
44
+ Condition {
45
+ KeyPrefixEquals = "colorcop/download"
46
+ }
47
+ Redirect {
48
+ ReplaceKeyWith = "download"
49
50
+ },
51
52
53
+ KeyPrefixEquals = "colorcop/features"
54
55
56
+ ReplaceKeyWith = "features"
57
58
59
+])
60
61
62
resource "aws_cloudfront_distribution" "distribution" {
0 commit comments