Skip to content

Latest commit

 

History

History
102 lines (77 loc) · 1.66 KB

File metadata and controls

102 lines (77 loc) · 1.66 KB

google_service_account

back

Index

Terraform

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

top

Example Usage

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

  # account_id - (required) is a type of string
  account_id = null
  # project - (optional) is a type of string
  project = null
}

top

Variables

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

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

top

Datasource

data "google_service_account" "this" {
  # account_id - (required) is a type of string
  account_id = var.account_id
  # project - (optional) is a type of string
  project = var.project
}

top

Outputs

output "display_name" {
  description = "returns a string"
  value       = data.google_service_account.this.display_name
}

output "email" {
  description = "returns a string"
  value       = data.google_service_account.this.email
}

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

output "name" {
  description = "returns a string"
  value       = data.google_service_account.this.name
}

output "unique_id" {
  description = "returns a string"
  value       = data.google_service_account.this.unique_id
}

output "this" {
  value = google_service_account.this
}

top