Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a way to migrate stackit_argus_instance to stackit_observability_instance #532

Open
mouhsen-ibrahim opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mouhsen-ibrahim
Copy link
Contributor

The latest version of the provider renamed the resource stackit_argus_instance to stackit_observability_instance, if I change the resource type in my code and use the moved block to use the new type without re-creating the resources then I get this error from terraform

│ Error: Unsupported `moved` across resource types
│ 
│   on ../../modules/argus/argus.tf line 10:
│   10: moved {
│ 
│ The provider "registry.terraform.io/stackitcloud/stackit" does not support moved operations across resource types and providers.

My moved block looks like this

moved {
  from = stackit_argus_instance.api
  to = stackit_observability_instance.api
}

You must in the provider add support for migrating from stackit_argus_instance to stackit_observability_instance, here is the developer's documentation for doing this
https://developer.hashicorp.com/terraform/plugin/framework/resources/state-move

Can you please handle this ASAP so we can migrate to the new type?

@joaopalet
Copy link
Contributor

Hi Mouhsen,

Thanks for the suggestion, we will have a look and plan it it soon.
We will inform you here once it's released.

@joaopalet joaopalet added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants