Cloud policy example
A base system cloud policy, Lease End ServiceNow, uses the on Lease end trigger that fires when a virtual resource is near the lease end date. If the conditions in the policy rule are met, the policy engine sends a notification to the owner of the resource and performs operations on the resource.
Before you begin
About this task
In this example, you work with the Lease End ServiceNow policy. The policy performs the following actions when the conditions in the policy rule are met:
- Send a notification to the owner of a cloud resource when the resource lease is about to expire.
- Run a Stop operation on the resource.
- Run a Deprovision operation on the resource.
You can change any base-system policy by modifying settings or making the policy active or inactive.
Note:
Scheduled Start/Stop operations are not supported on the Terraform template and the Google Deployment Manager (GDM)
stacks.