What is the use case for terraform import ?
How should we handle terraform only attribute in case of import ?
We have a custom provider, where we have some terraform only attribute, which doesn’t have a backing api.
So whenever we try to import these, breaking changes appear.
Is there a way to save these attributes from the terraform config file to the state so that it doesn’t show change ?
Is there a way to differentiate import from other operations ?
My understanding of import is, if a user wants to import an existing resource into his configuration.
In that case, the user makes a configuration and try to import it, in that case for terraform only attributes it keeps on showing changes and we have to make hand edits to the state file.
Other is if user lost his state file, so he tries to import the resources. In this case as well, it keeps on showing changes.
Is there a way to to set the terraform only attributes from the config to state file during the import ?