From f00f509005bcad59ca3c5a44604335f7908f2623 Mon Sep 17 00:00:00 2001 From: Seung Park Date: Wed, 9 Oct 2024 11:07:47 -0400 Subject: [PATCH] DOP-5065: add redirect rule for compass - master (#1073) add redirect rule for compass - master --- infrastructure/ecs-main/buckets.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infrastructure/ecs-main/buckets.yml b/infrastructure/ecs-main/buckets.yml index bf3272432..48df98ce9 100644 --- a/infrastructure/ecs-main/buckets.yml +++ b/infrastructure/ecs-main/buckets.yml @@ -288,6 +288,12 @@ Resources: Protocol: "https" HostName: ${self:custom.site.host.${self:provider.stage}} ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/compass/current + - RoutingRuleCondition: + KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/compass/master/ + RedirectRule: + Protocol: "https" + HostName: ${self:custom.site.host.${self:provider.stage}} + ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/compass/current/ DocAtlasBucket: Type: "AWS::S3::Bucket" Properties: