[英]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.