-
Notifications
You must be signed in to change notification settings - Fork 15
Fix location of calitp-state-highway-network-stops
bucket to us-west2
#4317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
erikamov
wants to merge
1
commit into
main
Choose a base branch
from
mov/3712-fix-state-highway-location
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1
−1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fa8e522
to
9a8b893
Compare
Terraform plan in iac/cal-itp-data-infra/gcs/us Plan: 1 to add, 8 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
# google_storage_bucket.tfer--calitp-state-highway-network-stops must be replaced
-/+ resource "google_storage_bucket" "tfer--calitp-state-highway-network-stops" {
!~ effective_labels = {
+ "goog-terraform-provisioned" = "true"
}
- enable_object_retention = false -> null
!~ id = "**********************************" -> (known after apply)
- labels = {} -> null
!~ location = "US" -> "US-WEST2" # forces replacement
name = "calitp-state-highway-network-stops"
!~ project_number = 1005246706141 -> (known after apply)
!~ rpo = "DEFAULT" -> (known after apply)
!~ self_link = "https://www.googleapis.com/storage/v1/b/calitp-state-highway-network-stops" -> (known after apply)
!~ terraform_labels = {
+ "goog-terraform-provisioned" = "true"
}
!~ time_created = "2024-10-01T17:58:00.763Z" -> (known after apply)
!~ updated = "2024-10-01T17:58:00.763Z" -> (known after apply)
!~ url = "gs://calitp-state-highway-network-stops" -> (known after apply)
# (7 unchanged attributes hidden)
- hierarchical_namespace {
- enabled = false -> null
}
!~ soft_delete_policy (known after apply)
- soft_delete_policy {
- effective_time = "2024-10-01T17:58:00.763Z" -> null
- retention_duration_seconds = 604800 -> null
}
- timeouts {}
!~ versioning (known after apply)
!~ website (known after apply)
}
# google_storage_bucket.tfer--rt-parsed-deprecated will be updated in-place
!~ resource "google_storage_bucket" "tfer--rt-parsed-deprecated" {
id = "rt-parsed-deprecated"
name = "rt-parsed-deprecated"
!~ terraform_labels = {
+ "deprecated" = (known after apply)
}
# (16 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# google_storage_bucket_iam_binding.tfer--calitp-gtfs-rt-validation will be updated in-place
!~ resource "google_storage_bucket_iam_binding" "tfer--calitp-gtfs-rt-validation" {
id = "calitp-gtfs-rt-validation"
!~ members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
# (1 unchanged element hidden)
]
# (3 unchanged attributes hidden)
}
# google_storage_bucket_iam_binding.tfer--rt-parsed-deprecated will be updated in-place
!~ resource "google_storage_bucket_iam_binding" "tfer--rt-parsed-deprecated" {
id = "rt-parsed-deprecated"
!~ members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
# (1 unchanged element hidden)
]
# (3 unchanged attributes hidden)
}
# google_storage_bucket_iam_policy.tfer--calitp-gtfs-rt-parsed will be updated in-place
!~ resource "google_storage_bucket_iam_policy" "tfer--calitp-gtfs-rt-parsed" {
id = "calitp-gtfs-rt-parsed"
!~ policy_data = jsonencode(
!~ {
!~ bindings = [
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyBucketOwner"
},
!~ {
!~ members = [
"projectViewer:cal-itp-data-infra",
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
# (1 unchanged attribute hidden)
},
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectOwner"
},
{
members = [
"projectViewer:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectReader"
},
- {
- members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
- role = "roles/storage.objectAdmin"
},
- {
- members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
- role = "roles/storage.objectViewer"
},
]
}
)
# (2 unchanged attributes hidden)
}
# google_storage_bucket_iam_policy.tfer--calitp-gtfs-rt-raw-v2 will be updated in-place
!~ resource "google_storage_bucket_iam_policy" "tfer--calitp-gtfs-rt-raw-v2" {
id = "calitp-gtfs-rt-raw-v2"
!~ policy_data = jsonencode(
!~ {
!~ bindings = [
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyBucketOwner"
},
!~ {
!~ members = [
"projectViewer:cal-itp-data-infra",
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
# (1 unchanged attribute hidden)
},
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectOwner"
},
# (2 unchanged elements hidden)
{
members = [
"serviceAccount:gtfs-rt-archiver-v3@cal-itp-data-infra.iam.gserviceaccount.com",
]
role = "roles/storage.objectCreator"
},
!~ {
!~ members = [
"serviceAccount:gtfs-rt-archiver-v3@cal-itp-data-infra.iam.gserviceaccount.com",
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
# (1 unchanged attribute hidden)
},
]
}
)
# (2 unchanged attributes hidden)
}
# google_storage_bucket_iam_policy.tfer--calitp-gtfs-rt-validation will be updated in-place
!~ resource "google_storage_bucket_iam_policy" "tfer--calitp-gtfs-rt-validation" {
id = "calitp-gtfs-rt-validation"
!~ policy_data = jsonencode(
!~ {
!~ bindings = [
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyBucketOwner"
},
!~ {
!~ members = [
"projectViewer:cal-itp-data-infra",
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
# (1 unchanged attribute hidden)
},
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectOwner"
},
{
members = [
"projectViewer:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectReader"
},
- {
- members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
- role = "roles/storage.objectAdmin"
},
]
}
)
# (2 unchanged attributes hidden)
}
# google_storage_bucket_iam_policy.tfer--calitp-gtfs-schedule-raw-v2 will be updated in-place
!~ resource "google_storage_bucket_iam_policy" "tfer--calitp-gtfs-schedule-raw-v2" {
id = "calitp-gtfs-schedule-raw-v2"
!~ policy_data = jsonencode(
!~ {
!~ bindings = [
# (4 unchanged elements hidden)
{
members = [
"serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
role = "roles/storage.objectAdmin"
},
- {
- members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
- role = "roles/storage.objectViewer"
},
]
}
)
# (2 unchanged attributes hidden)
}
# google_storage_bucket_iam_policy.tfer--rt-parsed-deprecated will be updated in-place
!~ resource "google_storage_bucket_iam_policy" "tfer--rt-parsed-deprecated" {
id = "rt-parsed-deprecated"
!~ policy_data = jsonencode(
!~ {
!~ bindings = [
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyBucketOwner"
},
!~ {
!~ members = [
"projectViewer:cal-itp-data-infra",
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
# (1 unchanged attribute hidden)
},
{
members = [
"projectEditor:cal-itp-data-infra",
"projectOwner:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectOwner"
},
{
members = [
"projectViewer:cal-itp-data-infra",
]
role = "roles/storage.legacyObjectReader"
},
- {
- members = [
- "serviceAccount:project-1005246706141@storage-transfer-service.iam.gserviceaccount.com",
]
- role = "roles/storage.objectAdmin"
},
]
}
)
# (2 unchanged attributes hidden)
}
Plan: 1 to add, 8 to change, 1 to destroy.
Changes to Outputs:
!~ google_storage_bucket_tfer--calitp-state-highway-network-stops_self_link = "https://www.googleapis.com/storage/v1/b/calitp-state-highway-network-stops" -> (known after apply) 📝 Plan generated in Terraform Plan #535 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR changes the bucket
calitp-state-highway-network-stops
location tous-west2
through Terraform.It is currently using US region and since there is no data I can just replace the location.
This change is important to keep buckets at the same region as BigQuery and part of the Cost Savings plan: #3711
[#3712]
Type of change
How has this been tested?
Tested using
terraform plan
.Post-merge follow-ups
Confirm the location was changed.