We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 718c439 commit 7f0e627Copy full SHA for 7f0e627
1 file changed
terraform/website/main.tf
@@ -51,15 +51,24 @@ resource "aws_s3_bucket_website_configuration" "bucket" {
51
},
52
{
53
Condition = {
54
- KeyPrefixEquals = "colorcop/features"
+ KeyPrefixEquals = "colorcop/features2"
55
}
56
Redirect = {
57
- ReplaceKeyWith = "features"
+ ReplaceKeyWith = "features2"
58
59
60
])
61
62
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
72
resource "aws_cloudfront_distribution" "distribution" {
73
aliases = [local.www_domain, var.domain]
74
comment = "Cloudfront distribution for ${var.domain}"
0 commit comments