mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 22:34:56 -04:00
cli: manual AWS terraform state transitions
This commit is designed to be reverted in the future (AB#3248). Terraform does not implement moved blocks with dynamic targets: https://github.com/hashicorp/terraform/issues/31335 so we have to migrate the terraform state ourselves.
This commit is contained in:
parent
22ebdace43
commit
3edc1c3ebb
9 changed files with 183 additions and 6 deletions
|
@ -1074,6 +1074,7 @@ type stubTerraform struct {
|
|||
setLogPathErr error
|
||||
planJSONErr error
|
||||
showPlanFileErr error
|
||||
stateMvErr error
|
||||
showState *tfjson.State
|
||||
}
|
||||
|
||||
|
@ -1108,3 +1109,7 @@ func (s *stubTerraform) SetLog(_ string) error {
|
|||
func (s *stubTerraform) SetLogPath(_ string) error {
|
||||
return s.setLogPathErr
|
||||
}
|
||||
|
||||
func (s *stubTerraform) StateMv(_ context.Context, _, _ string, _ ...tfexec.StateMvCmdOption) error {
|
||||
return s.stateMvErr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue