terraform-example-foundation
terraform-example-foundation copied to clipboard
Step 0-bootstrap Deploying Cloud Build got changes applying after set backend
TL;DR
On 0-bootstrap Deploying with Cloud Build step 16 - terraform apply should have no changes.
But I got lots of changes mainly regarding default values on GCP resources.
Expected behavior
terraform apply should have no changes.
Observed behavior
I got lots of changes mainly regarding default values on GCP resources.
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the last "terraform apply":
# module.tf_workspace["env"].module.artifacts_bucket.google_storage_bucket.bucket has been changed
~ resource "google_storage_bucket" "bucket" {
id = "gcp-environments-build-artifacts-prj-b-cicd-<removed>"
+ labels = {}
name = "gcp-environments-build-artifacts-prj-b-cicd-<removed>"
# (9 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.parent_iam_member["proj"].google_folder_iam_member.folder_parent_iam["roles/resourcemanager.folderIamAdmin"] has been changed
~ resource "google_folder_iam_member" "folder_parent_iam" {
~ etag = "BwXn9FMLmBQ=" -> "BwXn9FTdjBY="
id = "folders/<removed>/roles/resourcemanager.folderIamAdmin/serviceAccount:terraform-proj-sa@<removed>.iam.gserviceaccount.com"
# (3 unchanged attributes hidden)
}
# module.parent_iam_member["proj"].google_folder_iam_member.folder_parent_iam["roles/resourcemanager.folderViewer"] has been changed
~ resource "google_folder_iam_member" "folder_parent_iam" {
~ etag = "BwXn9FPtptA=" -> "BwXn9FTdjBY="
id = "folders/<removed>/roles/resourcemanager.folderViewer/serviceAccount:terraform-proj-sa@<removed>.iam.gserviceaccount.com"
# (3 unchanged attributes hidden)
}
Terraform Configuration
Default 0-bootstrap using Deploying with Cloud Build
Terraform Version
Terraform v1.0.0
on linux_amd64
+ provider registry.terraform.io/hashicorp/external v2.2.2
+ provider registry.terraform.io/hashicorp/google v4.34.0
+ provider registry.terraform.io/hashicorp/google-beta v4.34.0
+ provider registry.terraform.io/hashicorp/null v3.1.1
+ provider registry.terraform.io/hashicorp/random v3.4.2
+ provider registry.terraform.io/hashicorp/time v0.8.0
Additional information
No response