Apply any configuration/package changes with Terraform
()
| 110 | |
| 111 | @staticmethod |
| 112 | def apply() -> None: |
| 113 | """Apply any configuration/package changes with Terraform""" |
| 114 | os.chdir(TERRAFORM_DIR) |
| 115 | subprocess.check_call(['terraform', 'init']) |
| 116 | subprocess.check_call(['terraform', 'fmt']) |
| 117 | |
| 118 | # Apply changes (requires interactive approval) |
| 119 | subprocess.check_call(['terraform', 'apply', '-auto-approve=false']) |
| 120 | |
| 121 | def build(self) -> None: |
| 122 | """Build Lambda packages (saves *.zip files in terraform/)""" |
no outgoing calls