{"id":18995623,"url":"https://github.com/turbot/guardrails-samples","last_synced_at":"2025-07-20T01:34:14.095Z","repository":{"id":40425162,"uuid":"236019822","full_name":"turbot/guardrails-samples","owner":"turbot","description":"Provides teams using Turbot Guardrails automation and configuration-as-code examples for effective management of Guardrails for their organization.","archived":false,"fork":false,"pushed_at":"2025-07-05T00:51:32.000Z","size":11288,"stargazers_count":25,"open_issues_count":9,"forks_count":29,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-07-05T01:36:39.197Z","etag":null,"topics":["hactoberfest","turbot","turbot-guardrails"],"latest_commit_sha":null,"homepage":"https://turbot.com/guardrails","language":"HCL","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":null,"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,"zenodo":null}},"created_at":"2020-01-24T14:41:38.000Z","updated_at":"2025-07-05T00:51:34.000Z","dependencies_parsed_at":"2024-05-06T12:57:47.328Z","dependency_job_id":"3a72c76c-be5c-4d26-a686-db1e6e64d2cb","html_url":"https://github.com/turbot/guardrails-samples","commit_stats":null,"previous_names":["turbot/guardrails-samples","turbot/tdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/turbot/guardrails-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fguardrails-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fguardrails-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fguardrails-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fguardrails-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/guardrails-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fguardrails-samples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266053841,"owners_count":23869498,"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":["hactoberfest","turbot","turbot-guardrails"],"created_at":"2024-11-08T17:32:07.772Z","updated_at":"2025-07-20T01:34:14.073Z","avatar_url":"https://github.com/turbot.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turbot Guardrails Samples\n\n[![policy packs](https://img.shields.io/badge/policy_packs-143-blue)](https://hub.guardrails.turbot.com/policy-packs?utm_id=gspreadme\u0026utm_source=github\u0026utm_medium=repo\u0026utm_campaign=github\u0026utm_content=readme) \u0026nbsp;\n[![slack](https://img.shields.io/badge/slack-2500-blue)](https://turbot.com/community/join?utm_id=gspreadme\u0026utm_source=github\u0026utm_medium=repo\u0026utm_campaign=github\u0026utm_content=readme) \u0026nbsp;\n[![maintained by](https://img.shields.io/badge/maintained%20by-Turbot-blue)](https://turbot.com?utm_id=gspreadme\u0026utm_source=github\u0026utm_medium=repo\u0026utm_campaign=github\u0026utm_content=readme)\n\nThis repository contains sample Policy Packs and queries to help you get started with Turbot Guardrails, ensuring your cloud environments are secure, compliant, and well-governed. It provides teams using [Turbot Guardrails](https://turbot.com/guardrails) automation and configuration-as-code examples for effective management of Guardrails for their organization.\n\n## Getting Started\n\n### Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- You have an active Guardrails workspace.\n- You have the necessary permissions to create and manage policies in Guardrails.\n- You have set up your cloud provider accounts (AWS, Azure, GCP) and imported them in your Guardrails workspace.\n\n### Usage\n\nClone:\n\n```bash\ngit clone https://github.com/turbot/guardrails-samples.git\ncd guardrails-samples\n```\n\nPlease see each directory's README that contains specific usage instructions.\n\n### API Examples\n\nThe [api_examples](https://github.com/turbot/guardrails-samples/tree/main/api_examples) directory includes working examples of how to call the Guardrails GraphQL API using Python and Javascript (node.js), this can serve a starting point for developing your own scripts or integrations.\n\n### Baselines\n\nThe [baselines](https://github.com/turbot/guardrails-samples/tree/main/baselines) directory provides a starting point for the most common configuration templates needed when creating a new Turbot Guardrails workspace or onboarding a cloud provider resource into Guardrails. Baselines are implemented with [Terraform](https://www.terraform.io), allowing you to manage and provision Turbot Guardrails with a repeatable, idempotent, versioned infrastructure-as-code approach.\n\n### Enterprise Installation\n\nThe [enterprise_installation](https://github.com/turbot/guardrails-samples/tree/main/enterprise_installation) directory contains some common (and uncommon) helpers that are sometimes used as part of complex enterprise installations of Guardrails. Guardrails support or professional services will direct you to use these when needed for your install.\n\n### Guardrails Utilities\n\nThe [guardrails_utilities](https://github.com/turbot/guardrails-samples/tree/main/guardrails_utilities) directory contains useful scripts and utilities for common guardrails support operations (both enterprise and SaaS). Guardrails support or professional services will direct you to use these when needed.\n\n### Mod Examples\n\nThe [mod_examples](https://github.com/turbot/guardrails-samples/tree/main/mod_examples) directory contains a working example of a custom mod that can serve as the basis for writing your own custom integration for Turbot Guardrails.\n\n### Policy Packs\n\nThe [policy_packs](https://github.com/turbot/guardrails-samples/tree/main/policy_packs) directory includes policy configurations for implementing common best practices for security, FinOps and compliance configured via Guardrails policy settings.  The Policy Packs are implemented with [Terraform](https://www.terraform.io), allowing you to manage and provision Guardrails with a repeatable, idempotent, versioned infrastructure-as-code approach.\n\n### Queries\n\nThe [queries](https://github.com/turbot/guardrails-samples/tree/main/queries) directory contains GraphQL queries that can be run in your [Turbot Guardrails](https://turbot.com/guardrails) environment to assess compliance and security status of your cloud resources. These queries are designed to retrieve specific data points from your cloud environment, enabling you to enforce policies, generate reports, and monitor compliance. Each query is tailored to address a particular governance requirement or best practice.\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## Get Involved\n\n**[Join #guardrails on Slack →](https://turbot.com/community/join)**\n\nWant to help but not sure where to start? Pick up one of the `help wanted` issues:\n\n- [Guardrails Samples](https://github.com/turbot/guardrails-samples/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fguardrails-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fguardrails-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fguardrails-samples/lists"}