File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ resource "aws_s3_bucket_acl" "bucket" {
2828 acl = " public-read"
2929}
3030
31+ # Configure website settings
3132resource "aws_s3_bucket_website_configuration" "bucket" {
3233 bucket = aws_s3_bucket. bucket . id
3334
@@ -40,23 +41,23 @@ resource "aws_s3_bucket_website_configuration" "bucket" {
4041 }
4142
4243 routing_rules = jsonencode ([
43- {
44- Condition {
45- KeyPrefixEquals = " colorcop/download"
44+ {
45+ Condition {
46+ KeyPrefixEquals = " colorcop/download"
47+ }
48+ Redirect {
49+ ReplaceKeyWith = " download"
50+ }
51+ },
52+ {
53+ Condition {
54+ KeyPrefixEquals = " colorcop/features"
55+ }
56+ Redirect {
57+ ReplaceKeyWith = " features"
58+ }
4659 }
47- Redirect {
48- ReplaceKeyWith = " download"
49- }
50- },
51- {
52- Condition {
53- KeyPrefixEquals = " colorcop/features"
54- }
55- Redirect {
56- ReplaceKeyWith = " features"
57- }
58- }
59- ])
60+ ])
6061}
6162
6263resource "aws_cloudfront_distribution" "distribution" {
You can’t perform that action at this time.
0 commit comments