Page MenuHomePhabricator

[terraform] add PITR to dynamodb tables
ClosedPublic

Authored by varun on Aug 28 2024, 9:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 7:35 PM
Unknown Object (File)
Sun, Nov 10, 2:47 AM
Unknown Object (File)
Sat, Nov 9, 6:58 PM
Unknown Object (File)
Sat, Nov 9, 6:56 PM
Unknown Object (File)
Sat, Nov 9, 5:43 PM
Unknown Object (File)
Oct 20 2024, 6:02 AM
Unknown Object (File)
Oct 19 2024, 9:14 AM
Unknown Object (File)
Oct 18 2024, 11:01 PM
Subscribers

Details

Summary

enabled point in time recovery for all tables except identity workflows and nonces. wasn't sure which tables for other services should have this feature so enabled for all of them

Test Plan

confirmed with terraform plan that these changes would enable PITR in production only

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Aug 28 2024, 9:30 AM

Generally seems okay to enable it for all these tables

services/terraform/modules/shared/dynamodb.tf
2 ↗(On Diff #43772)

We have is_staging = terraform.workspace != "production"

This revision is now accepted and ready to land.Sep 1 2024, 11:34 PM
services/terraform/modules/shared/dynamodb.tf
2 ↗(On Diff #43772)

that local variable is defined in remote so it's not available in modules

This revision was automatically updated to reflect the committed changes.
services/terraform/modules/shared/dynamodb.tf
2 ↗(On Diff #43772)

You're right, I missed this.
I thought I exposed it somehow to modules.shared but it turns out it was is_dev which is false for both staging and prod