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

Add support for resource_policies #260

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

wkharold
Copy link
Contributor

This pull request adds support for resource policies. Compute instance resource policies can be used to specify maintenance windows or control the physical proximity of instances within the Google Cloud compute infrastructure.

It adds two new variables: resource_policies and automatic_restart.

resource_policies is used to associate an instance with a resource policy via a self_link to the policy
automatic_restart is a variable that was previously set automatically depending on whether or not the instance was preemptible, now it is exposed in the instance_template module so that it can be explicitly set as required when using resource policies.

Issue #258 is resolved by this PR.

@comment-bot-dev
Copy link

Thanks for the PR! 🚀
✅ Lint checks have passed.

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to show these in an example as a follow up https://github.com/terraform-google-modules/terraform-google-vm/tree/master/examples

@bharathkkb bharathkkb merged commit c382631 into terraform-google-modules:master Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants