Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #162: Resolve provider version conflict in 03-Network-Hub #163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

upwardsolutions-inc
Copy link

@upwardsolutions-inc upwardsolutions-inc commented Jan 16, 2025

Fix for Provider Version Conflict in 03-Network-Hub Module This PR addresses the issue described in #162, where the azure_bastion module causes a provider version conflict for azurerm. The conflict arises due to differing provider version constraints between the root module and the Azure/avm-res-network-routetable/azurerm module.

Changes Made:

  1. Updated the main.tf in the root module to ensure consistent provider constraints by adding version attribute with the value 0.3.0:
module "azure_bastion" {
  source = "Azure/avm-res-network-bastionhost/azurerm"
  version = "0.3.0"
  name                = "bastion"
  resource_group_name = azurerm_resource_group.rg.name
  location            = azurerm_resource_group.rg.location
  copy_paste_enabled  = true
  file_copy_enabled   = false
  sku                 = "Standard"
  ip_configuration = {
    name                 = "bastion-ipconfig"
    subnet_id            = module.avm-res-network-virtualnetwork.subnets["AzureBastionSubnet"].resource_id
    public_ip_address_id = module.publicIpBastion.public_ip_id
  }
  ip_connect_enabled     = true
  scale_units            = 4
  shareable_link_enabled = true
  tunneling_enabled      = true
  kerberos_enabled       = false
}

Testing:

Verified the changes with
terraform init
and
terraform plan
in the affected module.

### Fix for Provider Version Conflict in 03-Network-Hub Module
This PR addresses the issue described in Azure#162, where the `azure_bastion` module causes a provider version conflict for `azurerm`. The conflict arises due to differing provider version constraints between the root module and the `Azure/avm-res-network-routetable/azurerm` module.

#### Changes Made:
1. Updated the `main.tf` in the root module to ensure consistent provider constraints by adding version attribute with the value 0.3.0:
   ```hcl
   
module "azure_bastion" {
  source = "Azure/avm-res-network-bastionhost/azurerm"
  version = "0.3.0"
  name                = "bastion"
  resource_group_name = azurerm_resource_group.rg.name
  location            = azurerm_resource_group.rg.location
  copy_paste_enabled  = true
  file_copy_enabled   = false
  sku                 = "Standard"
  ip_configuration = {
    name                 = "bastion-ipconfig"
    subnet_id            = module.avm-res-network-virtualnetwork.subnets["AzureBastionSubnet"].resource_id
    public_ip_address_id = module.publicIpBastion.public_ip_id
  }
  ip_connect_enabled     = true
  scale_units            = 4
  shareable_link_enabled = true
  tunneling_enabled      = true
  kerberos_enabled       = false
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant