Skip to content

docs(terraform): Workbench セットアップスクリプトと再現手順を追記 - #42

Merged
kittchy merged 1 commit into
mainfrom
docs/terraform-workbench-setup-readme
Apr 28, 2026
Merged

docs(terraform): Workbench セットアップスクリプトと再現手順を追記#42
kittchy merged 1 commit into
mainfrom
docs/terraform-workbench-setup-readme

Conversation

@kittchy

@kittchy kittchy commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

概要

Vertex AI Workbench の起動スクリプトを workbench_scritps/ 配下にコミットし、mixi-ml-workbench-notebook-utils バケットへの配置手順と、新規環境を一から再現するためのセットアップ手順を README に追記しました。

変更点

  • workbench_scritps/entrypoint.sh / notebook-auto-shutdown.sh を追加(起動時 cron 登録 + 8時間アイドル自動停止)
  • README に「初回セットアップ(環境を再現する手順)」セクションを追加(gcloud 認証 → state バケット手動作成 → terraform init/apply → スクリプトアップロードの順)
  • README に gcloud storage cpmixi-ml-workbench-notebook-utils バケットへスクリプトを配置する手順を明記
  • 管理対象リソース一覧にユーザー単位 IAM と Artifact Registry (ml-hands-on) を補記
  • 2 つの GCS バケットに force_destroy = true を追加

背景

post-startup-script が GCS 上のスクリプトを参照しているにもかかわらず、リポジトリにスクリプト本体と配置手順が無く、新環境の再現に必要な情報が揃っていなかったため。

- 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>
Comment thread terraform/main.tf
storage_class = "STANDARD"
public_access_prevention = "enforced"
uniform_bucket_level_access = true
force_destroy = true

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

destroy時にうまくStorageが消えてくれなかったため。

@kittchy kittchy Apr 28, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[消し忘れ防止策]
workbenchで動かして、定期的にCPUをチェックし、使ってなかったら落とす

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[消し忘れ防止策]
workbenchで動かして、定期的にCPUをチェックし、使ってなかったら落とす

Comment thread terraform/README.md

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

次回以降詰まらないように、README.mdを更新

@kittchy
kittchy marked this pull request as ready for review April 28, 2026 09:47
@kittchy
kittchy merged commit 952e817 into main Apr 28, 2026
7 checks passed
@kittchy
kittchy deleted the docs/terraform-workbench-setup-readme branch April 28, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant