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

Import katapult_virtual_machine resources #48

Open
jimeh opened this issue Mar 1, 2021 · 2 comments
Open

Import katapult_virtual_machine resources #48

jimeh opened this issue Mar 1, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jimeh
Copy link
Contributor

jimeh commented Mar 1, 2021

We currently do not support importing katapult_virtual_machine resources, as
the disk_template and disk_template_options attributes are only relevant
during creation, and are not returned by the API at the moment.

There are plans for the API to return these attributes, but it's not a straight
forward thing, so we probably should not delay import support until it's ready.

Based on the import documentation, we probably want to use
ImportStateVerifyIgnore, and simply require users to define a lifecycle
block with a ignore_changes attribute to avoid the disk template options from
showing as changed after import.

It might be possible to use CustomizeDiff to suppress changes to
attributes which are only available during create. I did have a very brief look
into this back in December, but didn't have much luck, so I'm not sure if it's
possible.

@jimeh jimeh added the enhancement New feature or request label Mar 1, 2021
@jimeh
Copy link
Contributor Author

jimeh commented Mar 15, 2023

With the planned migration in #97 to the new Plugin Framework, along with some purpose made enhancements to Katapult's Core API, this issue should become easier to resolve.

@verenion
Copy link

verenion commented Nov 7, 2023

+1

The ability to import resources is something that is blocking us managing all of our resources in Terraform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants