https://github.com/osinfra-io/google-cloud-workload-identity
Infrastructure as Code (IaC) example for Google Cloud Platform workload identity.
https://github.com/osinfra-io/google-cloud-workload-identity
google-cloud-landing-zone-platform google-cloud-platform infrastructure-as-code osinfra platform-team terraform
Last synced: about 1 month ago
JSON representation
Infrastructure as Code (IaC) example for Google Cloud Platform workload identity.
- Host: GitHub
- URL: https://github.com/osinfra-io/google-cloud-workload-identity
- Owner: osinfra-io
- License: gpl-2.0
- Created: 2022-10-15T08:36:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T06:13:31.000Z (about 2 months ago)
- Last Synced: 2025-03-14T07:25:06.851Z (about 2 months ago)
- Topics: google-cloud-landing-zone-platform, google-cloud-platform, infrastructure-as-code, osinfra, platform-team, terraform
- Language: HCL
- Homepage: https://www.osinfra.io
- Size: 410 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
#
Google Cloud Platform - Workload Identity
**[GitHub Actions](https://github.com/osinfra-io/google-cloud-workload-identity/actions):**
[](https://github.com/osinfra-io/google-cloud-workload-identity/actions/workflows/dependabot.yml)
**[Infracost](https://www.infracost.io):**
[](https://dashboard.infracost.io/org/osinfra-io/repos/cdfd3281-bb1c-425b-aad0-1a80a1512502?tab=settings)
💵 Monthly estimates based on Infracost baseline costs.
## 📄 Repository Description
This repository configures [workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation) that aligns with our [Google Cloud landing zone platform](https://docs.osinfra.io/google-cloud-platform/landing-zone) design. A landing zone should be a prerequisite to deploying enterprise workloads in a cloud environment.
## 🏭 Platform Information
- Documentation: [docs.osinfra.io](https://docs.osinfra.io/product-guides/google-cloud-platform/landing-zone/google-cloud-workload-identity)
- Service Interfaces: [github.com](https://github.com/osinfra-io/google-cloud-workload-identity/issues/new/choose)##
Development
Our focus is on the core fundamental practice of platform engineering, Infrastructure as Code.
>Open Source Infrastructure (as Code) is a development model for infrastructure that focuses on open collaboration and applying relative lessons learned from software development practices that organizations can use internally at scale. - [Open Source Infrastructure (as Code)](https://www.osinfra.io)
To avoid slowing down stream-aligned teams, we want to open up the possibility for contributions. The Open Source Infrastructure (as Code) model allows team members external to the platform team to contribute with only a slight increase in cognitive load. This section is for developers who want to contribute to this repository, describing the tools used, the skills, and the knowledge required, along with Terraform documentation.
See the documentation for setting up a development environment [here](https://docs.osinfra.io/fundamentals/development-setup).
### 🛠️ Tools
- [checkov](https://github.com/bridgecrewio/checkov)
- [infracost](https://github.com/infracost/infracost)
- [pre-commit](https://github.com/pre-commit/pre-commit)
- [pre-commit-terraform](https://github.com/antonbabenko/pre-commit-terraform)
- [terraform-docs](https://github.com/terraform-docs/terraform-docs)### 📋 Skills and Knowledge
Links to documentation and other resources required to develop and iterate in this repository successfully.
- [workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation)
- [best practices for using workload identity federation](https://cloud.google.com/iam/docs/best-practices-for-using-workload-identity-federation)
- [gitHub configuring openid connect in gcp](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-google-cloud-platform)### 📓 Terraform Documentation
#### Providers
| Name | Version |
|------|---------|
| google | 6.14.1 |#### Modules
| Name | Source | Version |
|------|--------|---------|
| datadog | github.com/osinfra-io/terraform-datadog-google-integration | v0.3.0 |
| helpers | github.com/osinfra-io/terraform-core-helpers//root | v0.1.2 |
| project | github.com/osinfra-io/terraform-google-project | v0.4.5 |#### Resources
| Name | Type |
|------|------|
| [google_iam_workload_identity_pool.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iam_workload_identity_pool) | resource |
| [google_iam_workload_identity_pool_provider.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iam_workload_identity_pool_provider) | resource |#### Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| datadog\_api\_key | Datadog API key | `string` | n/a | yes |
| datadog\_app\_key | Datadog APP key | `string` | n/a | yes |
| datadog\_enable | Enable Datadog integration | `bool` | `false` | no |
| project\_billing\_account | The alphanumeric ID of the billing account this project belongs to | `string` | `"01C550-A2C86B-B8F16B"` | no |
| project\_cis\_2\_2\_logging\_sink\_project\_id | The CIS 2.2 logging sink benchmark project ID | `string` | n/a | yes |
| project\_folder\_id | The numeric ID of the folder this project should be created under. Only one of `org_id` or `folder_id` may be specified | `string` | n/a | yes |#### Outputs
| Name | Description |
|------|-------------|
| project\_id | The project ID |
| project\_number | The project number |
| workload\_identity\_pool\_names | The workload identity pool names |
| workload\_identity\_pool\_provider\_names | The workload identity pool provider names |