docs(terraform): Workbench セットアップスクリプトと再現手順を追記 - #42
Merged
Conversation
- workbench_scritps/ に entrypoint.sh と notebook-auto-shutdown.sh を追加 - mixi-ml-workbench-notebook-utils バケットに上記スクリプトを配置する手順を README に明記 - 初回セットアップ(state バケット作成・terraform init/apply・スクリプトアップロード)の再現手順を追加 - 管理対象リソース一覧にユーザー単位 IAM と Artifact Registry を補記 - バケットの force_destroy を有効化 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
kittchy
commented
Apr 28, 2026
| storage_class = "STANDARD" | ||
| public_access_prevention = "enforced" | ||
| uniform_bucket_level_access = true | ||
| force_destroy = true |
Collaborator
Author
There was a problem hiding this comment.
destroy時にうまくStorageが消えてくれなかったため。
kittchy
commented
Apr 28, 2026
Collaborator
Author
There was a problem hiding this comment.
[消し忘れ防止策]
workbenchで動かして、定期的にCPUをチェックし、使ってなかったら落とす
kittchy
commented
Apr 28, 2026
Collaborator
Author
There was a problem hiding this comment.
[消し忘れ防止策]
workbenchで動かして、定期的にCPUをチェックし、使ってなかったら落とす
Collaborator
Author
There was a problem hiding this comment.
次回以降詰まらないように、README.mdを更新
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
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.
概要
Vertex AI Workbench の起動スクリプトを
workbench_scritps/配下にコミットし、mixi-ml-workbench-notebook-utilsバケットへの配置手順と、新規環境を一から再現するためのセットアップ手順を README に追記しました。変更点
workbench_scritps/entrypoint.sh/notebook-auto-shutdown.shを追加(起動時 cron 登録 + 8時間アイドル自動停止)terraform init/apply→ スクリプトアップロードの順)gcloud storage cpでmixi-ml-workbench-notebook-utilsバケットへスクリプトを配置する手順を明記ml-hands-on) を補記force_destroy = trueを追加背景
post-startup-scriptが GCS 上のスクリプトを参照しているにもかかわらず、リポジトリにスクリプト本体と配置手順が無く、新環境の再現に必要な情報が揃っていなかったため。