Skip to content

Commit

Permalink
Remove unused global secondary index on subscriptions table (#1415)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tjmw authored Mar 21, 2024
1 parent 94f59f1 commit 74124ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions dynamo.cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74124ef

Please sign in to comment.