Skip to main content

GCP Compute Security Policy

A Google Cloud Platform (GCP) Compute Security Policy represents a Google Cloud Armor security policy. It is a collection of ordered rules that inspect and filter incoming Layer-7 traffic destined for your load balancers or virtual machine instances, allowing you to allow, deny, rate-limit, or redirect requests based on attributes such as IP address, geography, or pre-defined threat signatures. Security policies are attached to backend services or backend buckets to provide centralised, reusable protection for multiple workloads.
For a full explanation of the resource and its capabilities, see the official documentation: https://cloud.google.com/armor/docs/security-policy-overview

Terrafrom Mappings:

  • google_compute_security_policy.name

Supported Methods​

  • GET: Get GCP Compute Security Policy by "gcp-compute-security-policy-name"
  • LIST: List all GCP Compute Security Policy items
  • SEARCH