Skip to content

Latest commit

 

History

History
108 lines (84 loc) · 2.02 KB

File metadata and controls

108 lines (84 loc) · 2.02 KB

google_service_account_id_token

back

Index

Terraform

terraform {
  required_providers {
    google-beta = ">= 3.63.0"
  }
}

top

Example Usage

module "google_service_account_id_token" {
  source = "./modules/google-beta/d/google_service_account_id_token"

  # delegates - (optional) is a type of set of string
  delegates = []
  # include_email - (optional) is a type of bool
  include_email = null
  # target_audience - (required) is a type of string
  target_audience = null
  # target_service_account - (optional) is a type of string
  target_service_account = null
}

top

Variables

variable "delegates" {
  description = "(optional)"
  type        = set(string)
  default     = null
}

variable "include_email" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "target_audience" {
  description = "(required)"
  type        = string
}

variable "target_service_account" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "google_service_account_id_token" "this" {
  # delegates - (optional) is a type of set of string
  delegates = var.delegates
  # include_email - (optional) is a type of bool
  include_email = var.include_email
  # target_audience - (required) is a type of string
  target_audience = var.target_audience
  # target_service_account - (optional) is a type of string
  target_service_account = var.target_service_account
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.google_service_account_id_token.this.id
}

output "id_token" {
  description = "returns a string"
  value       = data.google_service_account_id_token.this.id_token
  sensitive   = true
}

output "this" {
  value = google_service_account_id_token.this
}

top