Skip to content

Commit 7f0e627

Browse files
committed
obj
1 parent 718c439 commit 7f0e627

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

terraform/website/main.tf

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,24 @@ resource "aws_s3_bucket_website_configuration" "bucket" {
5151
},
5252
{
5353
Condition = {
54-
KeyPrefixEquals = "colorcop/features"
54+
KeyPrefixEquals = "colorcop/features2"
5555
}
5656
Redirect = {
57-
ReplaceKeyWith = "features"
57+
ReplaceKeyWith = "features2"
5858
}
5959
}
6060
])
6161
}
6262

63+
resource "aws_s3_object" "redirect_features" {
64+
bucket = aws_s3_bucket.bucket.id
65+
key = "colorcop/features"
66+
content_type = "text/html"
67+
68+
website_redirect {
69+
replace_key_with = "features"
70+
}
71+
6372
resource "aws_cloudfront_distribution" "distribution" {
6473
aliases = [local.www_domain, var.domain]
6574
comment = "Cloudfront distribution for ${var.domain}"

0 commit comments

Comments
 (0)