本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
基础设施即代码概览
使用代码(而不是图形界面或命令行脚本)配置基础设施。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-14。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-04-14。"],[[["\u003cp\u003eInfrastructure as code allows you to configure your infrastructure using code rather than manual interfaces or command-line scripts.\u003c/p\u003e\n"],["\u003cp\u003eYou can integrate recommendations programmatically into your Infrastructure as Code (IaC) pipeline.\u003c/p\u003e\n"],["\u003cp\u003eMultiple resources are available, such as training courses and blog articles, to deepen your understanding of infrastructure as code.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud provides various tools for infrastructure as code, including Infrastructure Manager, Terraform, Config Connector, Cloud Development Kit for Terraform, Pulumi, Ansible, and Crossplane.\u003c/p\u003e\n"],["\u003cp\u003eTerraform, in particular, allows you to define Google Cloud resources in human-readable configuration files that can be versioned, reused, and shared.\u003c/p\u003e\n"]]],[],null,["# Infrastructure as code\n======================\n\nDocumentation and resources for configuring your infrastructure using code with Google Cloud products and services\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nExplore infrastructure as code in Google Cloud\n----------------------------------------------\n\nRead documentation and Cloud Architecture Center articles about infrastructure as code products, capabilities, and procedures. \n[description](/recommender/docs/tutorial-iac) \n\n### [Recommendations for infrastructure as code](/recommender/docs/tutorial-iac)\n\nApply recommendations programmatically by integrating them into your Infrastructure as Code (IaC) pipeline.\n\nTraining, blog articles, and more\n---------------------------------\n\nGo to training courses, blog articles, and other related resources. \n[school](https://www.cloudskillsboost.google/course_templates/636) \n\n### [Automate infrastructure on Google Cloud with Terraform](https://www.cloudskillsboost.google/course_templates/636)\n\nStudy how to write infrastructure as code with Terraform in Google Cloud.[open_in_new](https://www.cloudskillsboost.google/course_templates/636) \n[public](https://developer.hashicorp.com/terraform/tutorials/gcp-get-started) \n\n### [Use Terraform with Google Cloud](https://developer.hashicorp.com/terraform/tutorials/gcp-get-started)\n\nStudy step-by-step, command-line tutorials that walk you through the Terraform basics.[open_in_new](https://developer.hashicorp.com/terraform/tutorials/gcp-get-started)\n\nInfrastructure as code products by use case\n-------------------------------------------\n\nExpand sections or use the filter to find products and guides for typical use cases. \n\n### Provision, deploy, and manage infrastructure\n\n\nExpand this section to see relevant products and documentation. \n\n#### [Infrastructure Manager](/infrastructure-manager/docs)\n\nAutomate the deployment and management of Google Cloud infrastructure resources using Terraform. \n\n#### [Terraform on Google Cloud](/docs/terraform)\n\nDefine Google Cloud resources in human-readable configuration files that you can version, reuse, and share. \n\n#### [Config Connector](/config-connector/docs/overview)\n\nConfigure Google Cloud services and resources using Kubernetes tooling and APIs. \n\n#### [Cloud Development Kit for Terraform](https://developer.hashicorp.com/terraform/cdktf)\n\nConfigure Terraform to define and provision Google Cloud infrastructure and use your existing toolchain for tasks such as testing and dependency management.[open_in_new](https://developer.hashicorp.com/terraform/cdktf) \n\n#### [Google Cloud provider for Pulumi](https://www.pulumi.com/registry/packages/gcp/)\n\nAuthor infrastructure code using programming languages such as TypeScript, Python, Go, C#, Java or YAML.[open_in_new](https://www.pulumi.com/registry/packages/gcp) \n\n#### [Ansible](https://docs.ansible.com/ansible/latest/collections/google/cloud/index.html)\n\nAutomate provisioning, configuration management, application deployment, orchestration and other IT processes.[open_in_new](https://docs.ansible.com/ansible/latest/collections/google/cloud/index.html) \n\n#### [Crossplane](https://docs.crossplane.io/v1.14/getting-started/introduction/)\n\nConnect your Kubernetes cluster to external, non-Kubernetes resources, and build custom Kubernetes APIs to consume those resources.[open_in_new](https://docs.crossplane.io/v1.14/getting-started/introduction)\n\n### Related products, guides, and sites\n\n#### [Cloud Deployment Manager](/deployment-manager/docs)\n\nManage cloud resources using simple templates."]]