Skip to content

Latest commit

 

History

History
125 lines (98 loc) · 2.94 KB

File metadata and controls

125 lines (98 loc) · 2.94 KB

google_logging_billing_account_bucket_config

back

Index

Terraform

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

top

Example Usage

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

  # billing_account - (required) is a type of string
  billing_account = null
  # bucket_id - (required) is a type of string
  bucket_id = null
  # description - (optional) is a type of string
  description = null
  # location - (required) is a type of string
  location = null
  # retention_days - (optional) is a type of number
  retention_days = null
}

top

Variables

variable "billing_account" {
  description = "(required) - The parent resource that contains the logging bucket."
  type        = string
}

variable "bucket_id" {
  description = "(required) - The name of the logging bucket. Logging automatically creates two log buckets: _Required and _Default."
  type        = string
}

variable "description" {
  description = "(optional) - An optional description for this bucket."
  type        = string
  default     = null
}

variable "location" {
  description = "(required) - The location of the bucket."
  type        = string
}

variable "retention_days" {
  description = "(optional) - Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used."
  type        = number
  default     = null
}

top

Resource

resource "google_logging_billing_account_bucket_config" "this" {
  # billing_account - (required) is a type of string
  billing_account = var.billing_account
  # bucket_id - (required) is a type of string
  bucket_id = var.bucket_id
  # description - (optional) is a type of string
  description = var.description
  # location - (required) is a type of string
  location = var.location
  # retention_days - (optional) is a type of number
  retention_days = var.retention_days
}

top

Outputs

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

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

output "lifecycle_state" {
  description = "returns a string"
  value       = google_logging_billing_account_bucket_config.this.lifecycle_state
}

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

output "this" {
  value = google_logging_billing_account_bucket_config.this
}

top