Skip to content

Commit 3f61dba

Browse files
authored
fix: bump the version of the cloudbuild in the bootstrap step (terraform-google-modules#642)
* update the version of the cloudbuild in the bootstrap step * test the old version of the code * bums the version again' * bums the version again * bums to another version * bumps the version of the cloudbuild and bootstrap * bumps cloudbuild to 4.0 and bootstrap to 5.0 * Adapt the usage of cloudbuild to bump to 5.0: - Remove the usage of kms key - Bump terraform_validator_release to 0.6
1 parent 5659003 commit 3f61dba

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

0-bootstrap/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ the following steps:
183183
| csr\_repos | List of Cloud Source Repos created by the module, linked to Cloud Build triggers. |
184184
| gcs\_bucket\_cloudbuild\_artifacts | Bucket used to store Cloud/Build artifacts in CloudBuild project. |
185185
| gcs\_bucket\_tfstate | Bucket used for storing terraform state for foundations pipelines in seed project. |
186-
| kms\_crypto\_key | KMS key created by the module. |
187-
| kms\_keyring | KMS Keyring created by the module. |
188186
| seed\_project\_id | Project where service accounts and core APIs will be enabled. |
189187
| terraform\_sa\_name | Fully qualified name for privileged service account for Terraform. |
190188
| terraform\_service\_account | Email for privileged service account for Terraform. |

0-bootstrap/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resource "google_folder" "bootstrap" {
3131

3232
module "seed_bootstrap" {
3333
source = "terraform-google-modules/bootstrap/google"
34-
version = "~> 4.0"
34+
version = "~> 5.0"
3535
org_id = var.org_id
3636
folder_id = google_folder.bootstrap.id
3737
project_id = "${var.project_prefix}-b-seed"
@@ -102,7 +102,7 @@ resource "google_billing_account_iam_member" "tf_billing_admin" {
102102
// Comment-out the cloudbuild_bootstrap module and its outputs if you want to use Jenkins instead of Cloud Build
103103
module "cloudbuild_bootstrap" {
104104
source = "terraform-google-modules/bootstrap/google//modules/cloudbuild"
105-
version = "~> 3.0"
105+
version = "~> 5.0"
106106
org_id = var.org_id
107107
folder_id = google_folder.bootstrap.id
108108
project_id = "${var.project_prefix}-b-cicd"
@@ -117,7 +117,7 @@ module "cloudbuild_bootstrap" {
117117
cloudbuild_apply_filename = "cloudbuild-tf-apply.yaml"
118118
project_prefix = var.project_prefix
119119
cloud_source_repos = var.cloud_source_repos
120-
terraform_validator_release = "v0.4.0"
120+
terraform_validator_release = "v0.6.0"
121121
terraform_version = "0.13.7"
122122
terraform_version_sha256sum = "4a52886e019b4fdad2439da5ff43388bbcc6cce9784fde32c53dcd0e28ca9957"
123123

0-bootstrap/outputs.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ output "terraform_validator_policies_repo" {
5858
value = google_sourcerepo_repository.gcp_policies
5959
}
6060

61-
output "kms_keyring" {
62-
description = "KMS Keyring created by the module."
63-
value = module.cloudbuild_bootstrap.kms_keyring
64-
}
65-
66-
output "kms_crypto_key" {
67-
description = "KMS key created by the module."
68-
value = module.cloudbuild_bootstrap.kms_crypto_key
69-
}
70-
7161
/* ----------------------------------------
7262
Specific to jenkins_bootstrap module
7363
---------------------------------------- */

0 commit comments

Comments
 (0)