Log into Scully and get command line tokens
cd backend
terraform init
terraform apply
cd ..
cd terraform
terraform init --backend-config backend.hcl
Apply:
terraform apply
cd ..
This will populate the table with 50,000 randomly generated records. If the table name is not the default 'testing-pitr' the code will need editing.
cd populate
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
python populate.py
deactivate
cd ..
./restore.sh
This doesn't reapply the terraform but does update the code. For a real project the updates should be commited and the CI/CD tooling ran to update everything. Any projects that use the dynamodb table should also be updated to use the new name. The old table should also be manually deleted
cd terraform