From c5686a0053bb4d739ca7fb573db753a77ceae14e Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Fri, 19 Jan 2024 11:46:38 -0500 Subject: [PATCH 1/2] Add redirect rule for php library from master -> current --- 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 24fd72f7d..e8218273f 100644 --- a/infrastructure/ecs-main/buckets.yml +++ b/infrastructure/ecs-main/buckets.yml @@ -78,6 +78,12 @@ Resources: Protocol: "https" HostName: ${self:custom.site.host.${self:provider.stage}} ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 + - RoutingRuleCondition: + 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}}/php-library/current DocAtlasBucket: Type: "AWS::S3::Bucket" Properties: From 6fe52a23a51d5a8045a2deb557e19372319dbd58 Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Fri, 19 Jan 2024 11:52:55 -0500 Subject: [PATCH 2/2] master to UPCOMING, I meant --- infrastructure/ecs-main/buckets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/ecs-main/buckets.yml b/infrastructure/ecs-main/buckets.yml index e8218273f..f4f7dfcea 100644 --- a/infrastructure/ecs-main/buckets.yml +++ b/infrastructure/ecs-main/buckets.yml @@ -83,7 +83,7 @@ Resources: RedirectRule: Protocol: "https" HostName: ${self:custom.site.host.${self:provider.stage}} - ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/php-library/current + ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/php-library/upcoming DocAtlasBucket: Type: "AWS::S3::Bucket" Properties: