Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit f00f509

Browse files
authored
DOP-5065: add redirect rule for compass - master (#1073)
add redirect rule for compass - master
1 parent 01bec8f commit f00f509

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

infrastructure/ecs-main/buckets.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,12 @@ Resources:
288288
Protocol: "https"
289289
HostName: ${self:custom.site.host.${self:provider.stage}}
290290
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/compass/current
291+
- RoutingRuleCondition:
292+
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/compass/master/
293+
RedirectRule:
294+
Protocol: "https"
295+
HostName: ${self:custom.site.host.${self:provider.stage}}
296+
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/compass/current/
291297
DocAtlasBucket:
292298
Type: "AWS::S3::Bucket"
293299
Properties:

0 commit comments

Comments
 (0)