简体   繁体   English

terraform azure中相同基础结构的不同实例?

[英]Different instances of same infrastructure in terraform azure?

I have written part of an infrastructure in terraform connected to azure with a resourcegroup which has a virtual network and consists of two different SQL databases. 我用terraform编写了一部分基础设施,该基础设施通过一个虚拟网络和一个由两个不同的SQL数据库组成的资源组连接到azure。 The idea is to use this for different customers, which means I want to build up this infrastructure several times to create one resourcegroup with all the mentioned stuff for each customer. 想法是将其用于不同的客户,这意味着我想多次构建此基础架构,以创建一个资源组,为每个客户提供所有提及的内容。 However I can't seem to understand how to get different instances of it? 但是我似乎无法理解如何获取它的不同实例? Right now the resourcegroup in azure gets overwritten whenever I try to create another one with a different name. 现在,每当我尝试创建另一个具有不同名称的资源组时,azure中的资源组都会被覆盖。

I would also like to ask about virtual networks. 我也想问一下虚拟网络。 In the structure described above, will all customers be isolated from eachother with own resourcegroup containing a virtual network? 在上述结构中,是否所有客户都将通过包含虚拟网络的自己的资源组彼此隔离? I read somewhere that virtual networks are good because they isolate so I am just wondering if that is true. 我在某处读到虚拟网络很好,因为它们相互隔离,所以我想知道这是否是正确的。

You just need to deploy terraform template to different resource group. 您只需要将terraform模板部署到其他资源组。 And for the vnets - yes. 对于vnet-是的。 unless you peer\\connect vnets with vpn they are isolated from each other. 除非您用vpn对等\\ vnet连接vnet,否则它们是相互隔离的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Terraform 创建 Azure Spot 实例 - Creating Azure Spot Instances with Terraform 使用 Terraform 在 Azure 中创建完整的 Linux 虚拟机基础架构 - Create a complete Linux virtual machine infrastructure in Azure with Terraform Azure Terraform 使用基础架构即代码构建通用组件 - Azure Terraform Build Generic Components using Infrastructure as Code 无法将 docker-compose 基础设施部署到 Azure 容器实例 - Can`t deploy docker-compose infrastructure to Azure Container Instances 使相同的cookie在不同的Azure实例之间可读 - Make the same cookie readable between different Azure instances 使用 Terraform 的 Azure 容器实例上的 Lightstreamer - Lightstreamer on Azure Container Instances using Terraform 我们可以使用 sonarqube 从 Terraform 和 azure devops ci/cd 管道扫描(基础设施即代码)IaC 吗? - can we use sonarqube to scan (Infrastructure as code ) IaC from Terraform with azure devops ci/cd pipeline? 具有不同配置的Azure工作程序实例 - Azure worker instances with different configurations Azure HIPPA基础结构更新 - Azure HIPPA Infrastructure Updates 安全Azure基础架构 - Secure Azure Infrastructure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM