4-projects/modules/infra_pipelines/variables.tf (57 lines of code) (raw):
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "org_id" {
description = "GCP Organization ID"
type = string
}
variable "default_region" {
description = "Default region to create resources where applicable."
type = string
}
variable "cloudbuild_project_id" {
description = "The project id where the pipelines and repos should be created."
type = string
}
variable "remote_tfstate_bucket" {
description = "Bucket with remote state data to be used by the pipeline."
type = string
}
variable "billing_account" {
description = "The ID of the billing account to associated this project with."
type = string
}
variable "app_infra_repos" {
description = "A list of Cloud Source Repos to be created to hold app infra Terraform configs."
type = list(string)
}
variable "terraform_docker_tag_version" {
description = "TAG version of the terraform docker image."
type = string
default = "v1"
}
variable "cloud_builder_artifact_repo" {
description = "Artifact Registry (AR) repository that stores TF Cloud Builder images."
type = string
}
variable "private_worker_pool_id" {
description = "ID of the Cloud Build private worker pool."
type = string
}
variable "bucket_prefix" {
description = "Name prefix to use for state bucket created."
type = string
default = "bkt"
}