Aperçu
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
+
DeployStack est une série d'applications prédéfinies et conçues pour illustrer des architectures d'applications courantes. Chaque DeployStack inclut des scripts Terraform d'infrastructure et un code de démarrage. Lorsque les scripts Terraform s'exécutent, ils créent l'architecture et déploient le code dans cette infrastructure. Vous pouvez ensuite personnaliser le code en fonction des besoins de votre application.
Si DeployStack ne propose pas d'application adaptée à vos besoins, consultez le centre d'architecture cloud pour découvrir des bonnes pratiques, des recommandations d'implémentation et plus encore pour vous aider à concevoir un déploiement Google Cloud répondant aux besoins de votre entreprise.
La bibliothèque DeployStack continue de croître. Revenez bientôt pour découvrir d'autres applications.
Architecture
Chaque DeployStack est Open Source. Ils contiennent toujours les fichiers suivants:
- ./main.tf : script Terraform qui déploie l'architecture
- ./deploystack.json : fichier de configuration du script de collecte.
Ces fichiers déterminent les informations que DeployStack demandera et l'infrastructure qui sera créée.
Fonctionnement
Exécutez votre DeployStack en procédant comme suit:
Suivez le lien "Ouvrir dans Cloud Shell" de la pile.
Lorsque le terminal Cloud Shell se charge, DeployStack démarre automatiquement:
Saisissez les paramètres requis lorsque vous y êtes invité. Ces paramètres sont ensuite configurés dans le fichier deploystack.json
.
Le résultat de cette commande est un fichier nommé terraform.tfvars
.
Ce fichier fournit à Terraform les paramètres personnalisés utilisés pour configurer l'architecture.
Une fois le terraform.tfvars
créé, la routine d'installation appelle Terraform pour appliquer le contenu de main.tf
et terraform.tfvars
.
Une fois la routine d'installation terminée, l'architecture est déployée dans le projet Google Cloud désigné.
Code source
Toutes les piles sont publiées en tant que code Open Source sur GitHub. Vous les trouverez ici:
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/29 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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"]]