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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support VM max_run_duration with instance_termination_action=STOP #18112

Closed
arungantasala opened this issue May 13, 2024 · 1 comment
Closed
Labels

Comments

@arungantasala
Copy link

arungantasala commented May 13, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

Max run duration(MRD) feature support in terraform was added in PR 6812. There are behavioral changes in the feature which needs further changes.

  1. max_run_duration is not a one time intent
  2. Add STOP instance termination action with MRD
  3. Support MRD on instances with attached local SSDs.

New or Affected Resource(s)

  • google_compute_instance
  • google_compute_instance_template

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
resource "google_compute_instance" "foo" {
  # ...
  scheduling {
    max_run_duration {
      nanos = 123
      seconds = 60
    }
    on_instance_stop_action {
      discard_local_ssd = true
  }
}

References

@arungantasala
Copy link
Author

Fixed in #10683

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

No branches or pull requests

1 participant