-
Notifications
You must be signed in to change notification settings - Fork 686
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
Stop instances #697
Comments
Hi @magg , AFAIK, That being said, a possible improvement to the OCI provider would be to allow specifying the state in your TF configuration like this.
and then running |
Yes that would be nice for terraform to allow that syntax to manage the vm's state but i think that won't happen any time soon. According to these: they think providers should implement such feature hashicorp/terraform#1579 In any case that improvement you mentioned sounds good but how would i turn it back on?
and then |
This would need more design input, because there are certain actions like "RESET" or "SOFT_RESET" for which it's hard to say what the final state should be and would cause issues if Terraform were to store those values in the state file. But the general idea in my last comment is that this should be achieved through modifying the configuration file rather than as cmdline input. |
The feature is now available in the v3.18.0 of the provider. |
How can I specify the state of my instances to be stopped once they are created?
Something like this is should be useful for everyone
The text was updated successfully, but these errors were encountered: