Skip to content

Latest commit

 

History

History
126 lines (99 loc) · 2.24 KB

File metadata and controls

126 lines (99 loc) · 2.24 KB

google_endpoints_service_iam_member

back

Index

Terraform

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

top

Example Usage

module "google_endpoints_service_iam_member" {
  source = "./modules/google-beta/r/google_endpoints_service_iam_member"

  # member - (required) is a type of string
  member = null
  # role - (required) is a type of string
  role = null
  # service_name - (required) is a type of string
  service_name = null

  condition = [{
    description = null
    expression  = null
    title       = null
  }]
}

top

Variables

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

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

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

variable "condition" {
  description = "nested block: NestingList, min items: 0, max items: 1"
  type = set(object(
    {
      description = string
      expression  = string
      title       = string
    }
  ))
  default = []
}

top

Resource

resource "google_endpoints_service_iam_member" "this" {
  # member - (required) is a type of string
  member = var.member
  # role - (required) is a type of string
  role = var.role
  # service_name - (required) is a type of string
  service_name = var.service_name

  dynamic "condition" {
    for_each = var.condition
    content {
      # description - (optional) is a type of string
      description = condition.value["description"]
      # expression - (required) is a type of string
      expression = condition.value["expression"]
      # title - (required) is a type of string
      title = condition.value["title"]
    }
  }

}

top

Outputs

output "etag" {
  description = "returns a string"
  value       = google_endpoints_service_iam_member.this.etag
}

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

output "this" {
  value = google_endpoints_service_iam_member.this
}

top