-
Is Terraform > 1.4.4 supported for release 29.0.0? As soon as I add CICD with Cloudbuild I get:
terraform.tfvars: billing_account = {
id = "somebillingid"
}
# locations for GCS, BigQuery, and logging buckets created here
locations = {
bq = "EU"
gcs = "EU"
logging = "eu"
#pubsub = [ ]
pubsub = [ "europe-west3", "europe-west10" ]
}
# use `gcloud organizations list`
organization = {
domain = "somedomain"
id = someid
customer_id = "somecustomerid"
}
outputs_location = "~/fast-config"
# use something unique and no longer than 9 characters (real prefix is just 2 chars long)
prefix = "someprefix"
fast_features = {
data_platform = false
gke = true
project_factory = true
sandbox = true
teams = true
}
cicd_repositories = {
bootstrap = {
branch = "master"
name = "fast-bootstrap"
identity_provider = "google-beta"
type = "sourcerepo"
}
# resman = {
# branch = "master"
# name = "fast-resman"
# identity_provider = "google-beta"
# type = "sourcerepo"
# }
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The first part looks like a error on our side. Can you replace lines 77-89 in cicd.tf with the following and try again? iam = {
"roles/source.admin" = [
each.key == "bootstrap"
? module.automation-tf-bootstrap-sa.iam_email
: module.automation-tf-resman-sa.iam_email
]
"roles/source.reader" = concat(
[module.automation-tf-cicd-sa[each.key].iam_email],
each.key == "bootstrap"
? [module.automation-tf-bootstrap-r-sa.iam_email]
: [module.automation-tf-resman-r-sa.iam_email]
)
} I think the second error is because we didn't update the sourcerepo template with the new plan-only service accounts. Give us some time to submit a fix |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick reply. Unfortunately it didn't fix the issue. Error: Invalid function argument After replacing 77-89 in cicd.tf with iam = { gave me: ❯ terraform plan |
Beta Was this translation helpful? Give feedback.
Can you try #2019 and confirm if it fixes your issue?