Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 1.71 KB

File metadata and controls

102 lines (78 loc) · 1.71 KB

google_service_account_key

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

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

top

Datasource

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

top

Outputs

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

output "key_algorithm" {
  description = "returns a string"
  value       = data.google_service_account_key.this.key_algorithm
}

output "public_key" {
  description = "returns a string"
  value       = data.google_service_account_key.this.public_key
}

output "this" {
  value = google_service_account_key.this
}

top