β Repository β π Compliance Engine β π CloudAware β π Google β π VPC
π‘οΈ Google GCE IP Address is unusedπ’
- Contextual name: π‘οΈ GCE IP Address is unusedπ’
- ID:
/ce/ca/google/vpc/gce-ip-address-unused
- Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY
- Policy Categories:
COST
,SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy identifies Google Compute Engine (GCE) static external IP addresses that are reserved but not currently attached to any active resources, such as virtual machine instances or load balancer forwarding rules.
Rationaleβ
Unused static external IP addresses incur ongoing charges in Google Cloud when they remain reserved without being in use. Beyond cost implications, leaving unattached IPs allocated increases the risk of accidental or unauthorized assignment, which could expose services to the internet without appropriate security review. Regularly reviewing and cleaning up unused IP addresses helps optimize costs, strengthen network security, and reduce unnecessary resource clutter.
Impactβ
Before removing an unused static IP address, confirm that it is not reserved for a planned deployment or for a temporarily inactive service.
Auditβ
This policy marks a Google GCE IP Address as
INCOMPLIANT
if itsStatus
is set to RESERVED, indicating that it is not currently attached to any resource.
Remediationβ
Remediationβ
Before deleting a reserved IP address, confirm that it is not required for any current or planned services. Coordinate with application owners or the network team to ensure the IP is not reserved for upcoming deployments, temporarily stopped services, or part of a failover configuration.
Release an Unused Static External IP Addressβ
Using gcloud CLIβ
gcloud compute addresses delete {{address-name}} \
--region {{region}} \
--project {{project-id}}For global addresses (e.g., used by global load balancers), run:
gcloud compute addresses delete {{address-name}} \
--global \
--project {{project-id}}
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
---|---|---|---|---|---|
πΌ Cloudaware Framework β πΌ Public and Anonymous Access | 80 | no data | |||
πΌ Cloudaware Framework β πΌ Waste Reduction | 25 | no data |