Commit e0edd426 authored by Kenny Moore's avatar Kenny Moore
Browse files

So gcp project won't destroy on different name


Co-authored-by: Adam Robinson's avatarRobinson, Adam <adarobin@umich.edu>
parent 57cd992a
......@@ -80,6 +80,12 @@ resource "google_project" "gcp_project" {
labels = {
"shortcode" = var.shortcode
}
lifecycle {
ignore_changes = [
project_id,
name,
]
}
}
module "log_export_bq" {
......@@ -197,6 +203,11 @@ resource "google_logging_folder_sink" "hipaa_customer_logs" {
destination = "storage.googleapis.com/${google_storage_bucket.hipaa_customer_logs[0].name}"
filter = local.log_filters
lifecycle {
ignore_changes = [
name,
]
}
}
resource "google_storage_bucket" "hipaa_customer_logs" {
......@@ -233,6 +244,11 @@ resource "google_storage_bucket" "hipaa_customer_logs" {
}
}
}
lifecycle {
ignore_changes = [
name,
]
}
}
resource "google_project_iam_binding" "hipaa_customer_log_writer" {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment