Skip to content

Commit

Permalink
Merge pull request #17 from T-Systems-MMS/azurerm_3x
Browse files Browse the repository at this point in the history
update azurerm provider
  • Loading branch information
michaelamattes committed Jul 6, 2022
2 parents 53ecba1 + da03b2b commit 76d22b9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
22 changes: 15 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,21 @@ resource "azurerm_subnet" "subnet" {
resource "azurerm_public_ip" "public_ip" {
for_each = var.public_ip

name = local.public_ip[each.key].name == "" ? each.key : local.public_ip[each.key].name
location = local.public_ip[each.key].location
resource_group_name = local.public_ip[each.key].resource_group_name
allocation_method = local.public_ip[each.key].allocation_method
sku = local.public_ip[each.key].sku

tags = local.public_ip[each.key].tags
name = local.public_ip[each.key].name == "" ? each.key : local.public_ip[each.key].name
location = local.public_ip[each.key].location
resource_group_name = local.public_ip[each.key].resource_group_name
allocation_method = local.public_ip[each.key].allocation_method
zones = local.public_ip[each.key].zones
domain_name_label = local.public_ip[each.key].domain_name_label
edge_zone = local.public_ip[each.key].edge_zone
idle_timeout_in_minutes = local.public_ip[each.key].idle_timeout_in_minutes
ip_tags = local.public_ip[each.key].ip_tags
ip_version = local.public_ip[each.key].ip_version
public_ip_prefix_id = local.public_ip[each.key].public_ip_prefix_id
reverse_fqdn = local.public_ip[each.key].reverse_fqdn
sku = local.public_ip[each.key].sku
sku_tier = local.public_ip[each.key].sku_tier
tags = local.public_ip[each.key].tags
}

/** Network Interface */
Expand Down
17 changes: 13 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,19 @@ locals {
delegation = {}
}
public_ip = {
name = ""
allocation_method = "Static"
sku = "Basic"
tags = {}
name = ""
allocation_method = "Static"
zones = [1, 2, 3]
domain_name_label = null
edge_zone = null
idle_timeout_in_minutes = null
ip_tags = {}
ip_version = null
public_ip_prefix_id = null
reverse_fqdn = null
sku = "Basic"
sku_tier = null
tags = {}
}
network_interface = {
name = ""
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ terraform {
required_providers {
azurerm = {
source = "registry.terraform.io/hashicorp/azurerm"
version = ">=2.19.0"
version = ">=3.7.0"
}
}
required_version = ">=0.12"
required_version = ">=1.1"
}

0 comments on commit 76d22b9

Please sign in to comment.