From f537b54938e45dd06824e4660047c748a24b742a Mon Sep 17 00:00:00 2001 From: Tom Wey Date: Wed, 20 Mar 2024 15:45:49 +0000 Subject: [PATCH] Remove unused global secondary index on subscriptions table In #1410 a new index was added to replace the one removed here (it's the same, but also includes the platform). Since #1409 we've been using the new index, so now the old index can be removed. --- cloudformation.yaml | 1 - dynamo.cloudformation.yaml | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/cloudformation.yaml b/cloudformation.yaml index 65a140e71..4c8fa8867 100644 --- a/cloudformation.yaml +++ b/cloudformation.yaml @@ -1105,7 +1105,6 @@ Resources: Action: - "dynamodb:Scan" Resource: - - !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${App}-${Stage}-subscriptions/index/ios-endTimestamp-revalidation-index - !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${App}-${Stage}-subscriptions/index/ios-endTimestamp-revalidation-index-with-platform - !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${App}-${Stage}-subscriptions - PolicyName: sqs diff --git a/dynamo.cloudformation.yaml b/dynamo.cloudformation.yaml index 17655e6a0..d453dbad1 100644 --- a/dynamo.cloudformation.yaml +++ b/dynamo.cloudformation.yaml @@ -84,17 +84,6 @@ Resources: StreamSpecification: StreamViewType: NEW_AND_OLD_IMAGES GlobalSecondaryIndexes: - - IndexName: ios-endTimestamp-revalidation-index - KeySchema: - - AttributeName: subscriptionId - KeyType: HASH - - AttributeName: endTimestamp - KeyType: RANGE - Projection: - NonKeyAttributes: - - autoRenewing - - receipt - ProjectionType: INCLUDE - IndexName: ios-endTimestamp-revalidation-index-with-platform KeySchema: - AttributeName: subscriptionId