Control: Instances with more then 32 vCPU should be reviewed
Description
Large compute instances are unusual, expensive and should be reviewed.
Usage
Run the control in your terminal:
powerpipe control run gcp_thrifty.control.compute_instance_large
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_thrifty.control.compute_instance_large --share
Steampipe Tables
SQL
select self_link as resource, case when status not in ('RUNNING', 'PROVISIONING', 'STAGING', 'REPAIRING') then 'info' when machine_type_name like any ($1) then 'ok' else 'info' end as status, title || ' has type ' || machine_type_name || ' and is ' || status || '.' as reason , location, projectfrom gcp_compute_instance;
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | compute_instance_allowed_types |
| A list of allowed instance types. PostgreSQL wildcards are supported. |