{"id":13533625,"url":"https://github.com/turbot/steampipe-mod-terraform-gcp-compliance","last_synced_at":"2026-02-04T04:07:58.396Z","repository":{"id":40419030,"uuid":"449219190","full_name":"turbot/steampipe-mod-terraform-gcp-compliance","owner":"turbot","description":"Run compliance and security controls to detect Terraform GCP resources deviating from security best practices prior to deployment using Powerpipe and Steampipe.","archived":false,"fork":false,"pushed_at":"2024-10-24T11:48:21.000Z","size":2123,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-22T13:17:56.692Z","etag":null,"topics":["compliance","gcp","hacktoberfest","powerpipe","powerpipe-mod","security","sql","steampipe","steampipe-mod","terraform"],"latest_commit_sha":null,"homepage":"https://hub.powerpipe.io/mods/turbot/terraform_gcp_compliance","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-18T09:25:35.000Z","updated_at":"2024-10-24T11:28:39.000Z","dependencies_parsed_at":"2023-10-02T12:40:02.833Z","dependency_job_id":"f84374fb-a9da-4aca-b689-7325aa7e79ba","html_url":"https://github.com/turbot/steampipe-mod-terraform-gcp-compliance","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-terraform-gcp-compliance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-terraform-gcp-compliance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-terraform-gcp-compliance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-terraform-gcp-compliance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/steampipe-mod-terraform-gcp-compliance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250246728,"owners_count":21398919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compliance","gcp","hacktoberfest","powerpipe","powerpipe-mod","security","sql","steampipe","steampipe-mod","terraform"],"created_at":"2024-08-01T07:01:21.561Z","updated_at":"2026-02-04T04:07:53.378Z","avatar_url":"https://github.com/turbot.png","language":"Pascal","funding_links":[],"categories":["Infrastructure as code security"],"sub_categories":[],"readme":"# Terraform GCP Compliance Mod for Powerpipe\n\n50+ compliance and security controls to test your Terraform GCP resources against security best practices prior to deployment in your GCP projects.\n\nRun checks in a dashboard:\n\n![image](https://raw.githubusercontent.com/turbot/steampipe-mod-terraform-gcp-compliance/main/docs/terraform_gcp_compliance_dashboard.png)\n\nOr in a terminal:\n\n![image](https://raw.githubusercontent.com/turbot/steampipe-mod-terraform-gcp-compliance/main/docs/terraform_gcp_compliance_console_output.png)\n\n## Documentation\n\n- **[Benchmarks and controls →](https://hub.powerpipe.io/mods/turbot/terraform_gcp_compliance/controls)**\n- **[Named queries →](https://hub.powerpipe.io/mods/turbot/terraform_gcp_compliance/queries)**\n\n## Getting Started\n\n### Installation\n\nInstall Powerpipe (https://powerpipe.io/downloads), or use Brew:\n\n```sh\nbrew install turbot/tap/powerpipe\n```\n\nThis mod also requires [Steampipe](https://steampipe.io) with the [Terraform plugin](https://hub.steampipe.io/plugins/turbot/terraform) as the data source. Install Steampipe (https://steampipe.io/downloads), or use Brew:\n\n```sh\nbrew install turbot/tap/steampipe\nsteampipe plugin install terraform\n```\n\nFinally, install the mod:\n\n```sh\nmkdir dashboards\ncd dashboards\npowerpipe mod init\npowerpipe mod install github.com/turbot/steampipe-mod-terraform-gcp-compliance\n```\n\n### Browsing Dashboards\n\nStart Steampipe as the data source:\n\n```sh\nsteampipe service start\n```\n\nStart the dashboard server:\n\n```sh\npowerpipe server\n```\n\nBrowse and view your dashboards at **http://localhost:9033**.\n\n### Running Checks in Your Terminal\n\nInstead of running benchmarks in a dashboard, you can also run them within your\nterminal with the `powerpipe benchmark` command:\n\nList available benchmarks:\n\n```sh\npowerpipe benchmark list\n```\n\nRun a benchmark:\n\n```sh\npowerpipe benchmark run terraform_gcp_compliance.benchmark.bigquery\n```\n\nDifferent output formats are also available, for more information please see\n[Output Formats](https://powerpipe.io/docs/reference/cli/benchmark#output-formats).\n\n### Common and Tag Dimensions\n\nThe benchmark queries use common properties (like `path` and `connection_name`) and tags that are defined in the form of a default list of strings in the `variables.sp` file. These properties can be overwritten in several ways:\n\nIt's easiest to setup your vars file, starting with the sample:\n\n```sh\ncp powerpipe.ppvars.example powerpipe.ppvars\nvi powerpipe.ppvars\n```\n\nAlternatively you can pass variables on the command line:\n\n```sh\npowerpipe benchmark run terraform_gcp_compliance.benchmark.bigquery --var 'tag_dimensions=[\"Environment\", \"Owner\"]'\n```\n\nOr through environment variables:\n\n```sh\nexport PP_VAR_common_dimensions='[\"path\", \"connection_name\"]'\nexport PP_VAR_tag_dimensions='[\"Environment\", \"Owner\"]'\npowerpipe benchmark run terraform_gcp_compliance.benchmark.bigquery\n```\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Steampipe](https://steampipe.io) and [Powerpipe](https://powerpipe.io) are products produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). They are distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #powerpipe on Slack →](https://turbot.com/community/join)**\n\nWant to help but don't know where to start? Pick up one of the `help wanted` issues:\n\n- [Powerpipe](https://github.com/turbot/powerpipe/labels/help%20wanted)\n- [Terraform GCP Compliance Mod](https://github.com/turbot/steampipe-mod-terraform-gcp-compliance/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-mod-terraform-gcp-compliance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fsteampipe-mod-terraform-gcp-compliance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-mod-terraform-gcp-compliance/lists"}