Skip to content

Commit 99e53ac

Browse files
authored
Create AWS resources for external membership list V2 (#214)
1 parent 960e67c commit 99e53ac

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

cloudformation/iam.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Resources:
7575
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-stripe-links
7676
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-membership-provisioning
7777
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-membership-external
78+
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-membership-external-v2
7879
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-room-requests
7980
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-room-requests-status
8081
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-linkry

cloudformation/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,37 @@ Resources:
415415
- AttributeName: netid_list
416416
KeyType: HASH
417417

418+
ExternalMembershipV2RecordsTable:
419+
Type: "AWS::DynamoDB::Table"
420+
DeletionPolicy: "Retain"
421+
UpdateReplacePolicy: "Retain"
422+
Properties:
423+
BillingMode: "PAY_PER_REQUEST"
424+
TableName: infra-core-api-membership-external-v2
425+
DeletionProtectionEnabled: true
426+
PointInTimeRecoverySpecification:
427+
PointInTimeRecoveryEnabled: !If [IsProd, true, false]
428+
AttributeDefinitions:
429+
- AttributeName: "netId"
430+
AttributeType: "S"
431+
- AttributeName: "memberList"
432+
AttributeType: "S"
433+
KeySchema:
434+
- AttributeName: "netId"
435+
KeyType: "HASH"
436+
- AttributeName: "memberList"
437+
KeyType: "RANGE"
438+
GlobalSecondaryIndexes:
439+
- IndexName: "invertedIndex"
440+
KeySchema:
441+
- AttributeName: "memberList"
442+
KeyType: "HASH"
443+
- AttributeName: "netId"
444+
KeyType: "RANGE"
445+
Projection:
446+
ProjectionType: "ALL"
447+
448+
418449
RoomRequestsTable:
419450
Type: "AWS::DynamoDB::Table"
420451
DeletionPolicy: "Retain"

0 commit comments

Comments
 (0)