Page MenuHomePhabricator

[terraform] add PITR to dynamodb tables
ClosedPublic

Authored by varun on Aug 28 2024, 9:13 AM.
Tags
None
Referenced Files
F4114008: D13203.diff
Tue, Feb 18, 1:18 AM
Unknown Object (File)
Mon, Jan 20, 11:35 PM
Unknown Object (File)
Sun, Jan 19, 7:49 PM
Unknown Object (File)
Jan 15 2025, 8:58 AM
Unknown Object (File)
Jan 10 2025, 9:23 AM
Unknown Object (File)
Dec 18 2024, 3:27 PM
Unknown Object (File)
Dec 18 2024, 3:27 PM
Unknown Object (File)
Dec 18 2024, 3:26 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