Tags: NHSDigital/NRLF
Tags
Feature/safo6 nrl 721 seed sandbox data (#1140) - Deletes all items in a DynamoDB table and reseeds the table with X (default = 2) pointers of each type for X (default is 2) custodians - The scripts have been implemented to allow for execution either locally or via the lambda - When running locally, the delete_all_table_items.py and seed_sandbox_table.py scripts can be run independently or via the orchestrator script reset_sandbox_table.py - The lambda handles the orchestration of the delete and seed scripts (index.py), so the reset_sandbox_table.py script is not required for the lambda - The lambda is deployed account-wide to dev and/or test (since we wouldn't want to reseed prod tables) and only when a table in the account has been specified for reseeding - Logs showing the lambda working successfully can be seen [here](https://360016957465-rdeomcad.eu-west-2.console.aws.amazon.com/cloudwatch/home?region=eu-west-2#logsV2:log-groups/log-group/$252Faws$252Flambda$252Fnhsd-nrlf--dev--sandbox-seeder/log-events/2026$252F02$252F17$252F$255B$2524LATEST$255D79f615325d694728adfd7a13783facb7) - Because it's account-wide we have needed to make the lamda layers available in the a/c wide infrastructure
PreviousNext