iac/tf-multienv-cicd-anthos-autopilot/modules/ci-cd-pipeline/variables.tf (45 lines of code) (raw):

# Copyright 2022 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 "project_id" { type = string description = "Project ID where the resources will be deployed" } variable "region" { type = string description = "Region where regional resources will be deployed" } variable "container_registry" { type = object({ location = string project = string repository_id = string }) description = "Container registry object" } variable "repo_owner" { type = string description = "Owner of the repo that contains source." } variable "repo_name" { type = string description = "Name of the repo that contains source." } variable "service" { type = string description = "Path of the service" } variable "targets" { type = list(object({ name = string })) description = "Targets that shall be deployed to in order of deployment stages" } variable "repo_branch" { type = string description = "Name of the branch that should trigger CICD when pushed to." } variable "cloud_deploy_sa" { type = object({ id = string email = string }) description = "Cloud Deploy Service Account" }