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)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Nov 28, 6:48 AM
Unknown Object (File)
Nov 1 2024, 5:30 PM
Unknown Object (File)
Oct 13 2024, 6:36 AM
Unknown Object (File)
Oct 13 2024, 6:36 AM
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