НС
Size: a a a
НС
OK
on ../modules/triggers/main.tf line 38, in resource "google_cloudbuild_trigger" "filename-trigger":
38: github {
Blocks of type "github" are not expected here.
AK
on ../modules/triggers/main.tf line 38, in resource "google_cloudbuild_trigger" "filename-trigger":
38: github {
Blocks of type "github" are not expected here.
OK
data "google_client_config" "current" {}
provider "google-beta" {
version = "2.12.0"
project = "${var.gcp_project_id}"
region = "${var.region}"
}
locals {
repo_names = [
"two",
"one",
]
}
resource "google_cloudbuild_trigger" "filename-trigger" {
provider = "google-beta"
count = "${length(local.repo_names)}"
name = "${local.repo_names[count.index]}-${var.branch_name}"
github {
owner = "${var.repo_owner}"
name = "${local.repo_names[count.index]}"
push {
branch = "^${var.branch_name}$"
}
}
description = "Deploy ${var.branch_name} branch to ${var.env} cluster"
substitutions = {
# _DOMAIN = "${var.domain}"
_ENV = "${var.env}"
}
filename = "cloudbuild-deploy.yaml"
}
OK
AK
AK
terraform version
что говорит?OK
terraform version
что говорит?Error: Unsupported argument
on ../modules/triggers/main.tf line 36, in resource "google_cloudbuild_trigger" "filename-trigger":
36: name = "${local.repo_names[count.index]}-${var.branch_name}"
An argument named "name" is not expected here.
OK
AK
Error: Unsupported argument
on ../modules/triggers/main.tf line 36, in resource "google_cloudbuild_trigger" "filename-trigger":
36: name = "${local.repo_names[count.index]}-${var.branch_name}"
An argument named "name" is not expected here.
OK
AK
OK
AK
AK
AK
AO
AK
AK