cloud-foundation-fabric/examples/cloud-operations
Simone Ruffilli a29faa7f8c
instance_termination_action must be set for compute-vm spot instances (#778)
* Bumped providers version
* Adds ability to control instance_termination_action for SpotVMs
2022-08-20 18:37:17 +02:00
..
adfs instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
asset-inventory-feed-remediation instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
binauthz Binary authorization module and example 2022-06-17 16:09:12 +02:00
dns-fine-grained-iam instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
dns-shared-vpc instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
glb_and_armor Update Readme.md: gcs to bq + cloud armor / glb (#743) 2022-08-01 17:22:04 +02:00
iam-delegated-role-grants instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
multi-cluster-mesh-gke-fleet-api Example of a multi-cluster mesh on GKE configuring managed control plane using the Fleet API 2022-08-08 16:32:52 +02:00
network-dashboard Update metrics.yaml (#641) 2022-05-03 11:18:36 +02:00
onprem-sa-key-management instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
packer-image-builder instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
quota-monitoring instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
scheduled-asset-inventory-export-bq instance_termination_action must be set for compute-vm spot instances (#778) 2022-08-20 18:37:17 +02:00
unmanaged-instances-healthcheck Fix typos 2022-03-16 19:33:09 +01:00
vm-migration Update to multiple READMEs (#740) 2022-08-11 09:40:55 +02:00
workload-identity-federation Added new example for workload identity federation 2022-02-13 20:15:13 +01:00
README.md Update to multiple READMEs (#740) 2022-08-11 09:40:55 +02:00

README.md

Operations examples

The examples in this folder show how to wire together different Google Cloud services to simplify operations, and are meant for testing, or as minimal but sufficiently complete starting points for actual use.

Resource tracking and remediation via Cloud Asset feeds

This example shows how to leverage Cloud Asset Inventory feeds to stream resource changes in real time, and how to programmatically use the feed change notifications for alerting or remediation, via a Cloud Function wired to the feed PubSub queue.

The example's feed tracks changes to Google Compute instances, and the Cloud Function enforces policy compliance on each change so that tags match a set of simple rules. The obvious use case is when instance tags are used to scope firewall rules, but the example can easily be adapted to suit different use cases.


Scheduled Cloud Asset Inventory Export to Bigquery

This example shows how to leverage the Cloud Asset Inventory Exporting to Bigquery feature, to keep track of your organization's assets over time storing information in Bigquery. Data stored in Bigquery can then be used for different purposes like dashboarding or analysis.


Granular Cloud DNS IAM via Service Directory

This example shows how to leverage Service Directory and Cloud DNS Service Directory private zones, to implement fine-grained IAM controls on DNS. The example creates a Service Directory namespace, a Cloud DNS private zone that uses it as its authoritative source, service accounts with different levels of permissions, and VMs to test them.


Granular Cloud DNS IAM for Shared VPC

This example shows how to create reusable and modular Cloud DNS architectures, by provisioning dedicated Cloud DNS instances for application teams that want to manage their own DNS records, and configuring DNS peering to ensure name resolution works in a common Shared VPC.


Compute Engine quota monitoring

This example shows a practical way of collecting and monitoring Compute Engine resource quotas via Cloud Monitoring metrics as an alternative to the recently released built-in quota metrics. A simple alert on quota thresholds is also part of the example.


Delegated Role Grants

This example shows how to use delegated role grants to restrict service usage.


Packer image builder

This example shows how to deploy infrastructure for a Compute Engine image builder based on Hashicorp's Packer tool.


On-prem Service Account key management

This example shows how to manage IAM Service Account Keys by manually generating a key pair and uploading the public part of the key to GCP.


Migrate for Compute Engine (v5)

This set of examples shows how to deploy Migrate for Compute Engine (v5) on top of existing Cloud Foundations on different scenarios. An example on how to deploy the M4CE connector on VMWare ESXi is also part of the examples.


TCP healthcheck for unmanaged GCE instances

This example shows how to leverage Serverless VPC Access and Cloud Functions to organize a highly performant TCP healtheck for unmanaged GCE instances.