Page MenuHomePhabricator

[identity][terraform] Create DDB index for deviceID
ClosedPublic

Authored by bartek on Jun 7 2024, 3:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 5:30 PM
Unknown Object (File)
Sun, Oct 13, 6:36 AM
Unknown Object (File)
Sun, Oct 13, 6:36 AM
Unknown Object (File)
Sun, Oct 13, 6:36 AM
Unknown Object (File)
Sun, Oct 13, 6:35 AM
Unknown Object (File)
Oct 2 2024, 9:51 AM
Unknown Object (File)
Sep 21 2024, 11:31 AM
Unknown Object (File)
Sep 10 2024, 4:39 PM
Subscribers

Details

Summary

Addresses ENG-8382.
Introduced index to find devices only by deviceID.

Test Plan

terraform, localstack,

awslocal dynamodb scan --table-name identity-devices --index-name deviceID-index

returns userID, deviceID and loginTime attributes

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 7 2024, 4:25 AM

CI unrelated

services/identity/src/constants.rs
138–141 ↗(On Diff #41094)

Decided to restructure it a bit - login time is no longer a "migration-specific" attribute, but instead we have two "deprecated" attributes

@will or @varun will do a better job reviewing this.

This revision is now accepted and ready to land.Jun 14 2024, 6:40 AM