HomePhabricator
Diffusion Comm 2c8b73acde82

[services] Tunnelbroker - Add dynamoDB tables to the Terraform

Description

[services] Tunnelbroker - Add dynamoDB tables to the Terraform

Summary:
Add Tunnelbroker dynamoDB tables configuration to the Terraform test and production config files.
The database model is available in the architecture review block.

Test Plan:

  1. Run yarn run-local-cloud to update the structure of the dynamoDB tables inside the localstack docker container due to the changes.
  2. Run yarn run-tunnelbroker-service-dev-mode to run the tunnelbroker server.
  3. The tunnelbroker will connect to the localstack dynamoDB database and check for the tables are exists in the database by the isTableAvailable() internal method on the startup procedure.
  4. If some of the tables do not exist (were not created by the terraform or the name of the expected table is not correct in the terraform configuration) the tunnelbroker will throw an error table X is not available on startup.

Reviewers: karol-bisztyga, palys-swm, jimpo

Reviewed By: karol-bisztyga, palys-swm, jimpo

Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, yayabosh

Differential Revision: https://phab.comm.dev/D3965

Details