hashicorp / terraform-exec

Terraform CLI commands via Go.
https://pkg.go.dev/github.com/hashicorp/terraform-exec
Mozilla Public License 2.0
684 stars 114 forks source link

Add migrate state flag to init command. #460

Open Lucasjuv opened 6 months ago

Lucasjuv commented 6 months ago

Add support for -migrate-state flag after 0.15.4 where the migration is not automatic anymore.

Addresses issue #355

Another use case is to create the backend infrastructure (E.G. S3 and DynamoDB) and then migrate the state and apply other targets.