Skip to content

Commit

Permalink
docs(AZ-1088): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Shr3ps committed Nov 8, 2024
1 parent 15395d3 commit 96b8b9b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ module "route_table" {
resource_group_name = module.rg.name
}
module "network_security_group" {
source = "claranet/nsg/azurerm"
version = "x.x.x"
client_name = var.client_name
environment = var.environment
location = module.azure_region.location
location_short = module.azure_region.location_short
stack = var.stack
resource_group_name = module.rg.name
}
# module "network_security_group" {
# source = "claranet/nsg/azurerm"
# version = "x.x.x"
# client_name = var.client_name
# environment = var.environment
# location = module.azure_region.location
# location_short = module.azure_region.location_short
# stack = var.stack
# resource_group_name = module.rg.name
# }
module "subnet" {
source = "claranet/subnet/azurerm"
Expand All @@ -83,7 +83,7 @@ module "subnet" {
route_table_name = module.route_table.name
network_security_group_name = module.network_security_group.name
# network_security_group_name = module.network_security_group.name
service_endpoints = ["Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus", "Microsoft.Web"]
}
Expand Down Expand Up @@ -125,7 +125,7 @@ No modules.
| name\_suffix | Optional suffix for the generated name. | `string` | `""` | no |
| network\_security\_group\_name | The Network Security Group name to associate with the subnets. | `string` | `null` | no |
| network\_security\_group\_rg | The Network Security Group RG to associate with the subnet. Default is the same RG than the subnet. | `string` | `null` | no |
| private\_endpoint\_network\_policies | Enable or Disable network policies for the private endpoint on the subnet. Possible values are `Disabled`, `Enabled`, `NetworkSecurityGroupEnabled` and `RouteTableEnabled`. | `string` | `null` | no |
| private\_endpoint\_network\_policies | Enable or disable network policies for the private endpoint on the subnet. Possible values are `Disabled`, `Enabled`, `NetworkSecurityGroupEnabled` and `RouteTableEnabled`. | `string` | `null` | no |
| private\_link\_endpoint\_enabled | Enable or disable network policies for the Private Endpoint on the subnet. | `bool` | `null` | no |
| private\_link\_service\_enabled | Enable or disable network policies for the Private Link Service on the subnet. | `bool` | `null` | no |
| resource\_group\_name | Resource group name. | `string` | n/a | yes |
Expand Down
24 changes: 12 additions & 12 deletions examples/main/modules.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ module "route_table" {
resource_group_name = module.rg.name
}

module "network_security_group" {
source = "claranet/nsg/azurerm"
version = "x.x.x"

client_name = var.client_name
environment = var.environment
location = module.azure_region.location
location_short = module.azure_region.location_short
stack = var.stack
resource_group_name = module.rg.name
}
# module "network_security_group" {
# source = "claranet/nsg/azurerm"
# version = "x.x.x"

# client_name = var.client_name
# environment = var.environment
# location = module.azure_region.location
# location_short = module.azure_region.location_short
# stack = var.stack
# resource_group_name = module.rg.name
# }

module "subnet" {
source = "claranet/subnet/azurerm"
Expand All @@ -46,7 +46,7 @@ module "subnet" {

route_table_name = module.route_table.name

network_security_group_name = module.network_security_group.name
# network_security_group_name = module.network_security_group.name

service_endpoints = ["Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus", "Microsoft.Web"]
}
1 change: 0 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ output "nsg_association_id" {
output "rt_association" {
description = "Subnet route table association resource object."
value = one(azurerm_subnet_route_table_association.main[*])

}

output "rt_association_id" {
Expand Down
2 changes: 1 addition & 1 deletion variables-subnet.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ variable "private_link_endpoint_enabled" {
}

variable "private_endpoint_network_policies" {
description = "Enable or Disable network policies for the private endpoint on the subnet. Possible values are `Disabled`, `Enabled`, `NetworkSecurityGroupEnabled` and `RouteTableEnabled`."
description = "Enable or disable network policies for the private endpoint on the subnet. Possible values are `Disabled`, `Enabled`, `NetworkSecurityGroupEnabled` and `RouteTableEnabled`."
type = string
default = null
}
Expand Down

0 comments on commit 96b8b9b

Please sign in to comment.