FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
38 stars 14 forks source link

Changed the blob directory structure #278

Closed lizlooney closed 1 year ago

lizlooney commented 1 year ago

Changed the blob directory structure to make cleaning up before the next season easier. Blobs are now put in the following structure:

Removed the admin action that deleted blobs as it won't be needed. With the changes in the blob directory structure, deleting blobs can be done more efficiently in the cloud console.

github-actions[bot] commented 1 year ago

Terraform plan Succeeded for Workspace: default

Show Output ```diff An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ! update in-place -/+ destroy and then create replacement Terraform will perform the following actions: # module.dev.google_app_engine_standard_app_version.fmltc-app-v1 will be updated in-place ! resource "google_app_engine_standard_app_version" "fmltc-app-v1" { id = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" name = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" # (9 unchanged attributes hidden) ! automatic_scaling { ! min_pending_latency = "0.100s" -> "0.1s" # (4 unchanged attributes hidden) # (1 unchanged block hidden) } ! deployment { ! zip { ! source_url = "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/6ed1134af2cfaf992853790c4594435b.zip" -> "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/7792b3a6b45ec74348cce15daf7a0932.zip" # (1 unchanged attribute hidden) } } - handlers { - auth_fail_action = "AUTH_FAIL_ACTION_REDIRECT" -> null - login = "LOGIN_OPTIONAL" -> null - security_level = "SECURE_OPTIONAL" -> null - url_regex = ".*" -> null - script { - script_path = "auto" -> null } } # (8 unchanged blocks hidden) } # module.dev.google_cloudfunctions_function.perform-action will be updated in-place ! resource "google_cloudfunctions_function" "perform-action" { id = "projects/ftc-ml-firstinspires-dev/locations/us-central1/functions/perform_action" name = "perform_action" ! source_archive_object = "4b0cd7f14fcce9aa108a1b35410cfd22.zip" -> "7aa3a3a596f33a434cea906d84d1c1f7.zip" # (13 unchanged attributes hidden) # (2 unchanged blocks hidden) } # module.dev.google_storage_bucket_object.app-server-archive must be replaced -/+ resource "google_storage_bucket_object" "app-server-archive" { ! content_type = "application/zip" -> (known after apply) ! crc32c = "OKLtuw==" -> (known after apply) ! detect_md5hash = "btETSvLPr5koU3kMRZRDWw==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gae-source-6ed1134af2cfaf992853790c4594435b.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "btETSvLPr5koU3kMRZRDWw==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/6ed1134af2cfaf992853790c4594435b.zip?generation=1662924747268712&alt=media" -> (known after apply) - metadata = {} -> null ! name = "6ed1134af2cfaf992853790c4594435b.zip" -> "7792b3a6b45ec74348cce15daf7a0932.zip" # forces replacement ! output_name = "6ed1134af2cfaf992853790c4594435b.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/6ed1134af2cfaf992853790c4594435b.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.google_storage_bucket_object.closure_js must be replaced -/+ resource "google_storage_bucket_object" "closure_js" { ! crc32c = "oGyykQ==" -> (known after apply) ! detect_md5hash = "vd8IrSHWHbp6sgopToA4/Q==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-compiled/js/fmltc.js" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "vd8IrSHWHbp6sgopToA4/Q==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js?generation=1662924747242457&alt=media" -> (known after apply) - metadata = {} -> null name = "compiled/js/fmltc.js" ! output_name = "compiled/js/fmltc.js" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (3 unchanged attributes hidden) } # module.dev.google_storage_bucket_object.cloud-function-archive must be replaced -/+ resource "google_storage_bucket_object" "cloud-function-archive" { ! content_type = "application/zip" -> (known after apply) ! crc32c = "EnHEqA==" -> (known after apply) ! detect_md5hash = "SwzX8U/M6aoQihs1QQz9Ig==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gcf-source-4b0cd7f14fcce9aa108a1b35410cfd22.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "SwzX8U/M6aoQihs1QQz9Ig==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/4b0cd7f14fcce9aa108a1b35410cfd22.zip?generation=1662924747204116&alt=media" -> (known after apply) - metadata = {} -> null ! name = "4b0cd7f14fcce9aa108a1b35410cfd22.zip" -> "7aa3a3a596f33a434cea906d84d1c1f7.zip" # forces replacement ! output_name = "4b0cd7f14fcce9aa108a1b35410cfd22.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/4b0cd7f14fcce9aa108a1b35410cfd22.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.module.serverless-connector.google_vpc_access_connector.connector_beta["central-serverless"] must be replaced -/+ resource "google_vpc_access_connector" "connector_beta" { ! id = "projects/ftc-ml-firstinspires-dev/locations/us-central1/connectors/central-serverless" -> (known after apply) ! max_instances = 7 -> (known after apply) ! min_instances = 2 -> (known after apply) name = "central-serverless" - network = "ml-redis-vpc-dev" -> null # forces replacement ! self_link = "projects/ftc-ml-firstinspires-dev/locations/us-central1/connectors/central-serverless" -> (known after apply) ! state = "READY" -> (known after apply) # (5 unchanged attributes hidden) ! subnet { name = "serverless-subnet" ! project_id = "ftc-ml-firstinspires-dev" -> (known after apply) } } Plan: 4 to add, 2 to change, 4 to destroy. ```