mirror of https://github.com/databricks/cli.git
Upload terraform state even if apply fails (#923)
## Changes Upload terraform state even if apply fails Fixes #893 ## Tests Manually running `databricks bundle deploy` with incorrect permissions in bundle config and observe that it gets uploaded correctly
This commit is contained in:
parent
9b16e9bd45
commit
19e00d2d47
|
@ -29,8 +29,10 @@ func Deploy() bundle.Mutator {
|
|||
terraform.Interpolate(),
|
||||
terraform.Write(),
|
||||
terraform.StatePull(),
|
||||
terraform.Apply(),
|
||||
terraform.StatePush(),
|
||||
bundle.Defer(
|
||||
terraform.Apply(),
|
||||
terraform.StatePush(),
|
||||
),
|
||||
),
|
||||
lock.Release(lock.GoalDeploy),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue