generated from getindata/terraform-azurerm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add public IP resources * feat: Add public IP outputs * fix: Allow null values and fix descriptor name * improvement: set nullable to false for objects
- Loading branch information
Showing
13 changed files
with
174 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
output "terraform_module_template" { | ||
description = "Output of the template module" | ||
value = module.terraform_module_template | ||
output "public_ip" { | ||
description = "Output of the public ip module" | ||
value = module.public_ip | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
module "terraform_module_template" { | ||
module "resource_group" { | ||
source = "github.com/getindata/terraform-azurerm-resource-group?ref=v1.2.0" | ||
|
||
name = var.resource_group_name | ||
location = var.location | ||
} | ||
|
||
module "public_ip" { | ||
source = "../../" | ||
|
||
location = var.location | ||
resource_group_name = var.resource_group_name | ||
name = "public-ip" | ||
|
||
location = module.resource_group.location | ||
resource_group_name = module.resource_group.name | ||
|
||
allocation_method = "Dynamic" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
output "terraform_module_template" { | ||
description = "Output of the template module" | ||
value = module.terraform_module_template | ||
output "public_ip" { | ||
description = "Output of the public ip module" | ||
value = module.public_ip | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
output "name" { | ||
description = "Name of the resource" | ||
description = "Name of the Azure Public IP" | ||
value = one(azurerm_public_ip.this[*].name) | ||
} | ||
|
||
output "id" { | ||
description = "ID of the resource" | ||
description = "ID of the Azure Public IP" | ||
value = one(azurerm_public_ip.this[*].id) | ||
} | ||
|
||
output "resource_group_name" { | ||
description = "Name of the resource resource group" | ||
description = "Name of the Azure Public IP resource group" | ||
value = one(azurerm_public_ip.this[*].resource_group_name) | ||
} | ||
|
||
output "ip_address" { | ||
description = "The IP address value that was allocated" | ||
value = one(azurerm_public_ip.this[*].ip_address) | ||
} | ||
|
||
output "fqdn" { | ||
description = "Fully qualified domain name of the A DNS record associated with the public IP" | ||
value = one(azurerm_public_ip.this[*].fqdn) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters