Skip to content

Commit

Permalink
fix: update readme and basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Dec 18, 2023
1 parent b0edfb8 commit 50d34f3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
34 changes: 16 additions & 18 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,16 @@ usage: |-
source = "clouddrove/network-security-group/azure"
name = local.name
environment = local.environment
resource_group_name = "test-rg"
resource_group_location = "CanadaCentral"
resource_group_name = "app-storage-test-resource-group"
resource_group_location = "North Europe"
subnet_ids = ["/subscriptions/068245d4-3c94-42fe-9c4d-9e5e1cabc60c/resourceGroups/"]
inbound_rules = [
{
name = "ssh"
priority = 101
access = "Allow"
protocol = "Tcp"
source_address_prefix = "10.20.0.0/32"
#source_address_prefixes = ["10.20.0.0/32","10.21.0.0/32"]
name = "ssh"
priority = 101
access = "Allow"
protocol = "Tcp"
source_address_prefix = "10.20.0.0/32"
source_port_range = "*"
destination_address_prefix = "0.0.0.0/0"
destination_port_range = "22"
Expand All @@ -78,9 +77,9 @@ usage: |-
### complete Example
```hcl
module "vnet" {
module "network_security_group" {
depends_on = [module.subnet]
source = "clouddrove/vnet/azure"
source = "clouddrove/network-security-group/azure"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
Expand Down Expand Up @@ -117,9 +116,9 @@ usage: |-
### nsg-with-flow-logs Example
```hcl
module "vnet" {
module "network_security_group" {
depends_on = [module.subnet]
source = "clouddrove/vnet/azure"
source = "clouddrove/network-security-group/azure"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
Expand All @@ -132,12 +131,11 @@ usage: |-
flow_log_retention_policy_enabled = true
inbound_rules = [
{
name = "ssh"
priority = 101
access = "Allow"
protocol = "Tcp"
source_address_prefix = "10.20.0.0/32"
#source_address_prefixes = ["10.20.0.0/32","10.21.0.0/32"]
name = "ssh"
priority = 101
access = "Allow"
protocol = "Tcp"
source_address_prefix = "10.20.0.0/32"
source_port_range = "*"
destination_address_prefix = "0.0.0.0/0"
destination_port_range = "22"
Expand Down
2 changes: 1 addition & 1 deletion _example/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "network_security_group" {
environment = local.environment
resource_group_name = "app-storage-test-resource-group"
resource_group_location = "North Europe"
subnet_ids = ["/subscriptions/068245d4-3c94-42fe-9c4d-9e5e1cabc60c/resourceGroups/app-storage-test-resource-group/providers/Microsoft.Network/virtualNetworks/app-storage-test-vnet/subnets/app-storage-subnet1"]
subnet_ids = ["/subscriptions/068245d4-3c94-42fe-9c4d-9e5e1cabc60c/resourceGroups/"]
inbound_rules = [
{
name = "ssh"
Expand Down

0 comments on commit 50d34f3

Please sign in to comment.