Giter Site home page Giter Site logo

Comments (2)

matt-FFFFFF avatar matt-FFFFFF commented on August 31, 2024
azurerm_virtual_network = {
      connectivity = {
        eastus2 = {
        name = "vnt-10_96_0_0-20-shs-us-east-2"
        }
      },
      connectivity = {  
        centralus = {
        name = "vnt-10_97_0_0-20-shs-us-central-1"
        }

You have duplicate connectivity keys in this map. Have you tried moving the centralus attribute to be a sibling of eastus2?

from terraform-azurerm-caf-enterprise-scale.

w2jzthr602 avatar w2jzthr602 commented on August 31, 2024

@matt-FFFFFF Thanks for your response. I tried this but it still only wants to create the second VNet and RG. The first one gets ignored.

  hub_networks = [
    {
      config = {
        address_space                   = ["10.96.0.0/20", ]
        location                        = var.primary_location
        link_to_ddos_protection_plan    = var.enable_ddos_protection
        enable_hub_network_mesh_peering = true
      },
      config = {
        address_space                   = ["10.97.0.0/20", ]
        location                        = var.secondary_location
        link_to_ddos_protection_plan    = var.enable_ddos_protection
        enable_hub_network_mesh_peering = true
      },
    }
  ]

advanced = {
  custom_settings_by_resource_type = {
    azurerm_resource_group = {
      connectivity = {
        (var.primary_location) = {
        name = "rgp-network-shs-us-east-2"
        },
        (var.secondary_location) = {
        name = "rgp-network-shs-us-central-1"
        },
      },
      dns = {
        (var.primary_location) = {
        name = "rgp-dns-shs"
        }
      }
    },
    azurerm_virtual_network = {
      connectivity = {
        (var.primary_location) = {
        name = "vnt-10_96_0_0-20-shs-us-east-2"
        },
        (var.secondary_location) = {
        name = "vnt-10_97_0_0-20-shs-us-central-1"
        },
      }
    }  
  }
}

from terraform-azurerm-caf-enterprise-scale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.