From 9fa6e9707917a66ee3f8203059745cb10be230ff Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Wed, 3 Apr 2024 11:35:59 -0400 Subject: [PATCH 1/8] adding bucket routing rule --- 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 a476a5f8e..78ec944c9 100644 --- a/infrastructure/ecs-main/buckets.yml +++ b/infrastructure/ecs-main/buckets.yml @@ -84,6 +84,12 @@ Resources: Protocol: "https" HostName: ${self:custom.site.host.${self:provider.stage}} ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/php-library/upcoming + - RoutingRuleCondition: + KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm + RedirectRule: + Protocol: "https" + HostName: ${self:custom.site.host.${self:provider.stage}} + ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks DocAtlasBucket: Type: "AWS::S3::Bucket" Properties: From 36576b0f4139d46170ac21d759c8465ed9cbd3d1 Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Wed, 10 Apr 2024 16:45:41 -0400 Subject: [PATCH 2/8] bucket rules --- infrastructure/ecs-main/buckets.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/infrastructure/ecs-main/buckets.yml b/infrastructure/ecs-main/buckets.yml index 78ec944c9..51a03e74a 100644 --- a/infrastructure/ecs-main/buckets.yml +++ b/infrastructure/ecs-main/buckets.yml @@ -85,11 +85,23 @@ Resources: HostName: ${self:custom.site.host.${self:provider.stage}} ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/php-library/upcoming - RoutingRuleCondition: - KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/realm + 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/device-sdks + ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/device-sdks/sdk + - RoutingRuleCondition: + 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/device-sdks/web + - RoutingRuleCondition: + 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/device-sdks/studio DocAtlasBucket: Type: "AWS::S3::Bucket" Properties: From cc72be3928c792fe3c960821142e30bca52919e2 Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Thu, 11 Apr 2024 13:39:48 -0400 Subject: [PATCH 3/8] prerpd --- .github/workflows/deploy-stg-ecs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index 2e0cfb462..aed932005 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,6 +3,7 @@ on: branches: - "main" - "integration" + - "DOP-4452" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true From 4e62a2b71783942b6dc5a41ecbf26d42e4916438 Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Fri, 12 Apr 2024 11:02:11 -0400 Subject: [PATCH 4/8] release preprd --- .github/workflows/deploy-stg-ecs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index aed932005..2e0cfb462 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,7 +3,6 @@ on: branches: - "main" - "integration" - - "DOP-4452" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true From 79081a5306c620553a4d2e8cd5aae68213121c9e Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Fri, 12 Apr 2024 12:08:50 -0400 Subject: [PATCH 5/8] taking back preprd --- .github/workflows/deploy-stg-ecs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index 2e0cfb462..aed932005 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,6 +3,7 @@ on: branches: - "main" - "integration" + - "DOP-4452" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true From 8305ed01c86db46ae637a1e269f7e27e73055607 Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Fri, 12 Apr 2024 14:25:13 -0400 Subject: [PATCH 6/8] PREPRD AGAIN --- .github/workflows/deploy-stg-ecs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index aed932005..2e0cfb462 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,7 +3,6 @@ on: branches: - "main" - "integration" - - "DOP-4452" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true From c9aa69512c6b9ca4b57601d88bccd6fb620e015a Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Fri, 12 Apr 2024 14:31:01 -0400 Subject: [PATCH 7/8] back to preprd --- .github/workflows/deploy-stg-ecs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index 2e0cfb462..aed932005 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,6 +3,7 @@ on: branches: - "main" - "integration" + - "DOP-4452" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true From 6b2e2befdc0f7f37ae675c3a0b7886fd470e54d5 Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Mon, 15 Apr 2024 10:10:48 -0400 Subject: [PATCH 8/8] let go of preprd --- .github/workflows/deploy-stg-ecs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index aed932005..2e0cfb462 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,7 +3,6 @@ on: branches: - "main" - "integration" - - "DOP-4452" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true