Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.74 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.74 KB

Rules

This documentation describes a list of rules available by enabling this ruleset.

Basic Rules

Invalid machine types

These rules warn you if a machine type not listed at https://cloud.google.com/compute/docs/machine-types is being used. Please note that custom machine types cannot be detected correctly. These rules consider all machine types starting with [e2|n2|n2d|n1]-custom- to be valid.

Name Severity Enabled
google_composer_environment_invalid_machine_type ERROR
google_compute_instance_invalid_machine_type ERROR
google_compute_instance_template_invalid_machine_type ERROR
google_compute_reservation_invalid_machine_type ERROR
google_container_cluster_invalid_machine_type ERROR
google_container_node_pool_invalid_machine_type ERROR
google_dataflow_job_invalid_machine_type ERROR

Invalid member

This rule warn you if a member value in IAM related resources is invalid.

Name Severity Enabled
google_project_iam_audit_config_invalid_member ERROR
google_project_iam_binding_invalid_member ERROR
google_project_iam_member_invalid_member ERROR
google_project_iam_policy_invalid_member ERROR

Magic Modules Rules

These are the rules that warn against invalid values generated from Magic Modules. These rules are defined under the rules/magicmodules directory.

See the tools directory for how to generate these rules.

Deep Checking Rules

By enabling Deep Checking, you can enable rules that invoke API to perform more strict checking.

Name Severity Enabled
google_disabled_api ERROR