From 0690679a7449174609af95a19ed9c341feef84cc Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Tue, 21 May 2024 13:34:17 -0400 Subject: [PATCH] DOP-4474: redirects for offline part 1 (#1041) * DOP-4474: redirects for offline part 1 * Redirect *all* v1* k8s URLs * revision --- infrastructure/ecs-main/buckets.yml | 130 +++++++++++++++++++++------- 1 file changed, 98 insertions(+), 32 deletions(-) diff --git a/infrastructure/ecs-main/buckets.yml b/infrastructure/ecs-main/buckets.yml index 51a03e74a..1478c80a5 100644 --- a/infrastructure/ecs-main/buckets.yml +++ b/infrastructure/ecs-main/buckets.yml @@ -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 + 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 + - 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: