Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.4 KB

File metadata and controls

27 lines (20 loc) · 1.4 KB

OIDC Simple Example

Overview

This example showcases how to configure Workload Identity Federation using the tfc-oidc module for a sample Service Account.

Inputs

Name Description Type Default Required
project_id The project id to create Workload Identity Federation pool and example Service Account string n/a yes
role_list Google Cloud roles required for the Service Account list(string)
[
"roles/storage.admin"
]
no
tfc_org_name Terraform Cloud org name where the Workload Identity Federation pool will be attached string n/a yes
tfc_project_name Terraform Cloud project name where the Workload Identity Federation pool will be attached string "GCP OIDC" no
tfc_workspace_name Terraform Cloud workspace name where the Workload Identity Federation pool will be attached string "gcp-oidc" no

Outputs

Name Description
pool_name Pool name
project_id The project id to create Workload Identity Federation pool and example Service Account
provider_name Provider name
sa_email Example SA email