Page MenuHomePhabricator

[terraform] add PITR to dynamodb tables
ClosedPublic

Authored by varun on Aug 28 2024, 9:13 AM.
Tags
None
Referenced Files
F3007263: D13203.diff
Fri, Oct 18, 7:24 PM
F3004218: D13203.id43841.diff
Fri, Oct 18, 1:30 PM
F3001175: D13203.id43841.diff
Fri, Oct 18, 3:36 AM
F2999754: D13203.id43772.diff
Fri, Oct 18, 12:09 AM
Unknown Object (File)
Wed, Oct 16, 11:22 AM
Unknown Object (File)
Tue, Oct 15, 6:17 AM
Unknown Object (File)
Tue, Oct 15, 6:13 AM
Unknown Object (File)
Tue, Oct 15, 6:11 AM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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

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