概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
+
DeployStack は、一般的なアプリケーション アーキテクチャのデモを行うために事前構築および設計されている一連のアプリケーションです。各 DeployStack には、インフラストラクチャの Terraform スクリプトとスターター コードが含まれています。Terraform スクリプトが実行されると、アーキテクチャが構築され、そのインフラストラクチャにコードがデプロイされます。その後、アプリケーションのニーズに合わせてコードをカスタマイズできます。
DeployStack にニーズに合ったアプリがない場合は、クラウド アーキテクチャ センターにある、ビジネスニーズに合わせた Google Cloud デプロイの設計に役立つベスト プラクティス、実装に関する推奨事項などを確認してください。DeployStack ライブラリはまだ増加中ですので、しばらくしてからアプリケーションをもう一度確認してください。
アーキテクチャ
各 DeployStack はオープンソースです。常に次のファイルが含まれています。
- ./main.tf - アーキテクチャをデプロイする Terraform スクリプト
- ./deploystack.json - 収集スクリプトの構成ファイル。
これらのファイルによって、DeployStack がリクエストする情報とビルドされるインフラストラクチャが決まります。
仕組み
DeployStack を実行する手順は次のとおりです。
スタックの [Cloud Shell で開く] リンクをクリックします。
Cloud Shell ターミナルが読み込まれると、DeployStack が自動的に起動します。
画面の指示に沿って必要な設定を入力します。これらの設定は deploystack.json
ファイルで構成されます。
このコマンドの出力は、terraform.tfvars
という名前のファイルです。このファイルにより、アーキテクチャの構成に使用されるカスタマイズされた設定が Terraform に提供されます。
terraform.tfvars
が作成されると、インストール ルーティンは Terraform を呼び出して、main.tf
と terraform.tfvars
の内容を適用します。
インストール ルーティンが完了すると、アーキテクチャが指定された Google Cloud プロジェクトにデプロイされます。
ソースコード
すべてのスタックは、GitHub でオープンソース コードとしてリリースされています。以下に記載します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-29 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-29 UTC。"],[],[],null,["# Overview\n\n+\n\nDeployStack is a series of applications that are prebuilt and\narchitected to demonstrate common application architectures. Each DeployStack\nincludes infrastructure Terraform scripts and starter code. When the Terraform\nscripts run, they build the architecture and deploy the code into that\ninfrastructure. You can then customize the code to suit your application needs.\n\nIf DeployStack doesn't have an app to suit your needs, see the\n[Cloud Architecture Center](https://cloud.google.com/architecture/) for best\npractices, implementation recommendations, and more to help you design a Google\nCloud deployment that matches your business needs.\nThe DeployStack library is still growing, so check back soon for more\napplications.\n\nArchitecture\n------------\n\n[](./images/deploystack_diagram.svg)\n\nEach DeployStack is open-source. They will always contain the following\nfiles:\n\n- **./main.tf** - the Terraform script that deploys the architecture\n- **./deploystack.json** - a configuration file for the collection script.\n\nThese files dictate what information DeployStack will request and what\ninfrastructure will be built.\n\nHow does it work?\n-----------------\n\nRun your DeployStack by taking the following steps:\n\n1. Follow the \"Open in Cloud Shell\" link for the stack.\n\n2. When the Cloud Shell terminal loads, DeployStack will start up automatically:\n\n3. Enter the required settings as prompted. These settings are then configured in the `deploystack.json` file.\n\n The result of this command is an output a file named `terraform.tfvars`.\n This file gives Terraform the customized settings used to configure the\n architecture.\n4. Once the `terraform.tfvars` is created, the install routine calls Terraform\n to apply the contents of `main.tf` and `terraform.tfvars`.\n\n5. Upon completion of the install routine, the architecture is deployed\n in the designated Google Cloud project.\n\nSource Code\n-----------\n\nAll of the stacks are released as Open Source code on GitHub. They are here:\n\n- [DeployStack Core Project](https://github.com/googlecloudplatform/deploystack)\n- [Cost Sentry](https://github.com/googlecloudplatform/deploystack-cost-sentry)\n- [ETL Pipeline](https://github.com/googlecloudplatform/deploystack-etl-pipeline)\n- [Load Balanced Vms](https://github.com/googlecloudplatform/deploystack-load-balanced-vms)\n- [NoSQL Client Server](https://github.com/googlecloudplatform/deploystack-nosql-client-server)\n- [Ops Agent](https://github.com/googlecloudplatform/deploystack-ops-agent)\n- [Single VM](https://github.com/googlecloudplatform/deploystack-single-vm)\n- [Static Hosting with Domain](https://github.com/googlecloudplatform/deploystack-static-hosting-with-domain)\n- [Storage Event Function App](https://github.com/googlecloudplatform/deploystack-storage-event-function-app)\n- [Three Tier App](https://github.com/googlecloudplatform/deploystack-three-tier-app)\n- [Serverless End-To-End Photo Sharing Application](https://github.com/googlecloudplatform/deploystack-serverless-e2e-photo-sharing-app)\n\n\u003cbr /\u003e"]]