genvid.toolbox.TerraformBackup

class genvid.toolbox.TerraformBackup

Bases: Backup

Logic to backup and restore Terraform’s state.

TERRAFORM_FILES = ('terraform.tfvars.json', 'main.tf.json', 'backend.tf.json', '.terraform/terraform.tfstate')
property name: str

Overridden name() method.

backup(archive: ZipFile, obj)

Overridden backup() method.

Warning

While there is no type constraint on the obj parameter, the object should have a GENVID_SERVICES_DATADIR data member defined for this method to work properly.

restore(archive: ZipFile, obj)

Overridden restore() method.

Warning

While there is no type constraint on the obj parameter, the object should have a GENVID_SERVICES_DATADIR data member defined for this method to work properly.

class backup.TerraformBackup

Implementation of genvid.toolbox.TerraformBackup