Skip to content

Commit f6e5bb3

Browse files
committed
don't delete state
1 parent ac8bdaa commit f6e5bb3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ALZ/Private/Deploy-Accelerator-Helpers/New-Bootstrap.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ function New-Bootstrap {
6969
$bootstrapModulePath = Join-Path -Path $bootstrapPath -ChildPath $bootstrapDetails.Value.location
7070
if($cleanBootstrapFolder.IsPresent) {
7171
Write-Verbose "Cleaning bootstrap folder of Terraform meta files as requested..."
72-
Remove-TerraformMetaFileSet -path $bootstrapModulePath -writeVerboseLogs:$writeVerboseLogs.IsPresent
72+
Remove-TerraformMetaFileSet -path $bootstrapModulePath -writeVerboseLogs:$writeVerboseLogs.IsPresent -terraformFilesOrFoldersToRemove @(
73+
"terraform.tfstate.backup",
74+
".terraform",
75+
"terraform.tfvars",
76+
".terraform.lock.hcl"
77+
)
7378
}
7479

7580
Write-Verbose "Bootstrap Module Path: $bootstrapModulePath"

0 commit comments

Comments
 (0)