Page MenuHomePhabricator

[services][feature-flags] Describe feature flags table in terraform

Authored by tomek on Feb 23 2023, 6:55 AM.
Referenced Files
Unknown Object (File)
Tue, Jun 11, 2:49 PM
Unknown Object (File)
Tue, Jun 11, 10:21 AM
Unknown Object (File)
Tue, May 28, 6:35 AM
Unknown Object (File)
Tue, May 28, 6:35 AM
Unknown Object (File)
Tue, May 28, 6:35 AM
Unknown Object (File)
Tue, May 28, 6:28 AM
Unknown Object (File)
May 11 2024, 10:21 AM
Unknown Object (File)
May 10 2024, 11:27 PM



Add terraform description of the tables with feature flags configuration.

Depends on D6852

Test Plan

Tested if tables were successfully created on localstack. I'll also need to test it on AWS, but I haven't done that yet.

Diff Detail

rCOMM Comm
Lint Not Applicable
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Feb 23 2023, 7:31 AM
bartek added inline comments.
218 ↗(On Diff #23002)

What's the motivation for using PAY_PER_REQUEST instead of PROVISIONED?
For other tables, we use provisioned mode and specify read/write capacity.

For localstack it doesn't matter anyway but I'm asking in context of AWS deployment.

This revision is now accepted and ready to land.Feb 24 2023, 1:24 AM
218 ↗(On Diff #23002)

Feature flags table will be a lot smaller than other tables, writing to it will be performed rarely and only manually (after new release or when we decide to switch a flag). That means that we expect one write per couple of days which makes even the lowest provisioned capacity a couple of orders of magnitude too high for our needs.

Initially, reading is similar: one read per native app start, so at most a couple of reads per hour. In the future, if we decide to change an approach so that we query more frequently, we can change the policy.