Skip to content

Commit

Permalink
Merge pull request #2 from clouddrove/1.0.0
Browse files Browse the repository at this point in the history
fix name type
  • Loading branch information
anmolnagpal committed Dec 9, 2022
2 parents a99a3bf + 82b5899 commit 3a5ffe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ module "resource_group" {
source = "clouddrove/resource-group/azure"
version = "1.0.0"

label_order = ["name", "environment"]
name = "app"
environment = "example"
label_order = ["name", "environment"]
location = "Canada Central"
}

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "azurerm_public_ip" "pip" {
count = var.create_public_ip ? 1 : 0
allocation_method = "Static"
location = var.location
name = format("%s-NAT-gateway-ip", module.labels.id)
name = format("%s-nat-gateway-ip", module.labels.id)
resource_group_name = var.resource_group_name
zones = var.public_ip_zones
sku = "Standard"
Expand All @@ -24,7 +24,7 @@ resource "azurerm_public_ip" "pip" {
resource "azurerm_nat_gateway" "natgw" {
count = var.create_nat_gateway ? 1 : 0
location = var.location
name = format("%s-NAT-gateway", module.labels.id)
name = format("%s-nat-gateway", module.labels.id)
resource_group_name = var.resource_group_name
sku_name = "Standard"
idle_timeout_in_minutes = var.nat_gateway_idle_timeout
Expand Down

0 comments on commit 3a5ffe1

Please sign in to comment.