-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOP-4474: redirects for offline part 1 #1041
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,83 +25,149 @@ Resources: | |
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.3 | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2.1 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2 | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2.0 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2 | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.7 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/php-library/master | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/php-library/upcoming | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.6 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm/sdk | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/sdk | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.5 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm/web | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/web | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.4 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm/studio | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/studio | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.3 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.9 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.2 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.8 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1.0 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.7 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/php-library/master | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.6 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/php-library/upcoming | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm/sdk | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.5 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/sdk | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm/web | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.4 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/web | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm/studio | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.3 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/studio | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.2 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.1 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v2.0 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/v1.1 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/bi-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/v0. | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/stable | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/v1.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can probaby remove this rule, since we have the |
||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/stable | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/v1 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/stable | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/mongocli/v0. | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/mongocli/stable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again, unless I'm not looking correctly, I don't see redirects for mongo cli v1.0.0-1.24 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mongocli v1.0.0-v1.24 build with Snooty, so we don't have offline versions of them currently! Marvellous attention to detail though :) |
||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/spark-connector/v1.1 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/spark-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/spark-connector/v2 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/spark-connector/current | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/spark-connector/v3.0 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/spark-connector/current | ||
DocAtlasBucket: | ||
Type: "AWS::S3::Bucket" | ||
Properties: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little confused on these changes - won't this redirect /v1.2 to itself and same with v1.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but it'll also capture v1.2.x and v1.21 and replace them with v1.2, which is the outcome we want (same with v1.1*)